1
@ -71,57 +71,24 @@ SpriteAtlas:
|
||||
secondaryTextureSettings: {}
|
||||
variantMultiplier: 1
|
||||
packables:
|
||||
- {fileID: 21300000, guid: aa71876d530ed5a49987f64918831456, type: 3}
|
||||
- {fileID: 21300000, guid: 317f03ce55a5b864ab0236b58931c088, type: 3}
|
||||
- {fileID: 21300000, guid: 22f850a512e37024ebf7ac170d70e7bc, type: 3}
|
||||
- {fileID: 21300000, guid: 49ae77f0715164c47b33f3bb92cec6b5, type: 3}
|
||||
- {fileID: 21300000, guid: 75b01d666f026bf49b657e7a95102c9b, type: 3}
|
||||
- {fileID: 21300000, guid: aa71876d530ed5a49987f64918831456, type: 3}
|
||||
- {fileID: 21300000, guid: 3abf5b09978d92846a47fa939eb81faf, type: 3}
|
||||
- {fileID: 21300000, guid: eb39c46a6992e0c468c9e0528ad1141a, type: 3}
|
||||
- {fileID: 21300000, guid: 89facd118d5211748b5af117a4bfe7b7, type: 3}
|
||||
- {fileID: 21300000, guid: 22f850a512e37024ebf7ac170d70e7bc, type: 3}
|
||||
- {fileID: 21300000, guid: 75b01d666f026bf49b657e7a95102c9b, type: 3}
|
||||
- {fileID: 21300000, guid: 9425123995fe49f4c955e670ca75d536, type: 3}
|
||||
- {fileID: 21300000, guid: 317f03ce55a5b864ab0236b58931c088, type: 3}
|
||||
- {fileID: 21300000, guid: 3abf5b09978d92846a47fa939eb81faf, type: 3}
|
||||
- {fileID: 21300000, guid: 09417bd1cb5657247b2cfd2cac40149a, type: 3}
|
||||
- {fileID: 21300000, guid: b4523a6a8261d1045b9086f05ba634b0, type: 3}
|
||||
bindAsDefault: 1
|
||||
isAtlasV2: 0
|
||||
cachedData: {fileID: 0}
|
||||
packedSpriteRenderDataKeys:
|
||||
- 49ae77f0715164c47b33f3bb92cec6b5: 21300000
|
||||
- 89facd118d5211748b5af117a4bfe7b7: 21300000
|
||||
- 09417bd1cb5657247b2cfd2cac40149a: 21300000
|
||||
- 22f850a512e37024ebf7ac170d70e7bc: 21300000
|
||||
- 75b01d666f026bf49b657e7a95102c9b: 21300000
|
||||
- 3abf5b09978d92846a47fa939eb81faf: 21300000
|
||||
- 9425123995fe49f4c955e670ca75d536: 21300000
|
||||
- eb39c46a6992e0c468c9e0528ad1141a: 21300000
|
||||
- b4523a6a8261d1045b9086f05ba634b0: 21300000
|
||||
- aa71876d530ed5a49987f64918831456: 21300000
|
||||
- 317f03ce55a5b864ab0236b58931c088: 21300000
|
||||
packedSpriteRenderDataKeys: []
|
||||
m_MasterAtlas: {fileID: 0}
|
||||
m_PackedSprites:
|
||||
- {fileID: 21300000, guid: 49ae77f0715164c47b33f3bb92cec6b5, type: 3}
|
||||
- {fileID: 21300000, guid: 89facd118d5211748b5af117a4bfe7b7, type: 3}
|
||||
- {fileID: 21300000, guid: 09417bd1cb5657247b2cfd2cac40149a, type: 3}
|
||||
- {fileID: 21300000, guid: 22f850a512e37024ebf7ac170d70e7bc, type: 3}
|
||||
- {fileID: 21300000, guid: 75b01d666f026bf49b657e7a95102c9b, type: 3}
|
||||
- {fileID: 21300000, guid: 3abf5b09978d92846a47fa939eb81faf, type: 3}
|
||||
- {fileID: 21300000, guid: 9425123995fe49f4c955e670ca75d536, type: 3}
|
||||
- {fileID: 21300000, guid: eb39c46a6992e0c468c9e0528ad1141a, type: 3}
|
||||
- {fileID: 21300000, guid: b4523a6a8261d1045b9086f05ba634b0, type: 3}
|
||||
- {fileID: 21300000, guid: aa71876d530ed5a49987f64918831456, type: 3}
|
||||
- {fileID: 21300000, guid: 317f03ce55a5b864ab0236b58931c088, type: 3}
|
||||
m_PackedSpriteNamesToIndex:
|
||||
- by_2
|
||||
- hbs_7
|
||||
- zsj_9
|
||||
- hg_10
|
||||
- hj_3
|
||||
- zs_5
|
||||
- lbs_8
|
||||
- fc_6
|
||||
- "\u6700\u5F3A\u5927\u8111\u4E16\u754C\u6392\u884C2"
|
||||
- bj_4
|
||||
- qt_1
|
||||
m_PackedSprites: []
|
||||
m_PackedSpriteNamesToIndex: []
|
||||
m_RenderDataMap: {}
|
||||
m_Tag: "UIRaw_Atlas_\u52CB\u7AE0"
|
||||
m_IsVariant: 0
|
||||
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@ -41,7 +41,7 @@ Material:
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _Alpha: 1
|
||||
- _Alpha: 0.042892408
|
||||
- _Light: 1
|
||||
- _QueueControl: 0
|
||||
- _QueueOffset: 0
|
||||
|
@ -18,6 +18,9 @@ namespace GameLogic
|
||||
public TextMeshProUGUI m_RankInde;
|
||||
public Image Img;
|
||||
|
||||
// 写死一个列表
|
||||
private List<int> gongxianList = new List<int>() { 10, 30, 60, 100, 150, 210, 280, 360, 450, 550 };
|
||||
|
||||
public void OnInit(int i, PlayRankData playRankData)
|
||||
{
|
||||
m_PlayerName.text = playRankData.name;
|
||||
@ -44,6 +47,26 @@ namespace GameLogic
|
||||
m_GongXian.text = UITool.ConvertToString(playRankData.winCount);
|
||||
//m_LoaclScore.text = "(+" + UITool.ConvertToString(unitPlayer.m_Score) + "本局)";
|
||||
|
||||
Img.gameObject.SetActive(playRankData.winCount >= 10);
|
||||
|
||||
int mLoadId = 0;
|
||||
|
||||
// 判断自己的wincount 是第几个Id gongxianList
|
||||
for (int j = 0; j < gongxianList.Count; j++)
|
||||
{
|
||||
if (playRankData.winCount < gongxianList[j])
|
||||
{
|
||||
mLoadId = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (playRankData.winCount >= 10)
|
||||
{
|
||||
Img.sprite = GameModule.Resource.LoadAsset<Sprite>("qt_" + (mLoadId - 1));
|
||||
}
|
||||
|
||||
// 设置头像
|
||||
AsyncImageDownload.Instance.SetAsyncImage(playRankData.avatar, m_HeadIcon);
|
||||
}
|
||||
|