修复图不显示的问题

This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-28 15:26:42 +08:00
parent fd05064287
commit e68fb913dc

View File

@ -38,7 +38,8 @@ namespace GameLogic
AsyncImageDownload.Instance.SetAsyncImage(unitPlayerData.protCustMessageData.imgURL, m_HeadIcon);
StartCoroutine(ScrollNumber(num)); // Start the number scrolling coroutine
m_InfoTex.text = "送" + giftConfig.Name;
m_GiftIcon.material = GameModule.Resource.LoadAsset<Material>("gift" + giftConfig.Id + "_Left");
m_GiftIcon.sprite = GameModule.Resource.LoadAsset<Sprite>("1_" + (giftConfig.Id - 1));
//m_GiftIcon.material = GameModule.Resource.LoadAsset<Material>("gift" + giftConfig.Id + "_Left");
await UniTask.Delay(2000);
if (this != null && this.gameObject != null && transform.parent != null)
{