42 lines
934 B
C#
Raw Normal View History

2025-06-04 06:20:22 +08:00
using UnityEngine;
using UnityEngine.UI;
using TEngine;
using TMPro;
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
namespace GameLogic
{
[Window(UILayer.UI)]
class UIDianZanItem : UIWidget
{
#region <EFBFBD>ű<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵĴ<EFBFBD><EFBFBD><EFBFBD>
private TextMeshProUGUI m_tmp_PlayerName;
protected override void ScriptGenerator()
{
m_tmp_PlayerName = FindChildComponent<TextMeshProUGUI>("Icon/m_tmp_PlayerName");
}
#endregion
#region <EFBFBD>¼<EFBFBD>
#endregion
public void OnInit(string nickname)
{
if (!string.IsNullOrEmpty(nickname))
{
m_tmp_PlayerName.text = nickname;
2025-06-04 18:07:19 +08:00
UniTask.Delay(1500).ContinueWith(() => { Destroy(); });
2025-06-04 06:20:22 +08:00
}
else
{
Debug.LogError("m_tmp_PlayerName is null");
Destroy();
}
}
}
}