42 lines
934 B
C#
42 lines
934 B
C#
![]() |
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;
|
|||
|
UniTask.Delay(3000).ContinueWith(() => { Destroy(); });
|
|||
|
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
Debug.LogError("m_tmp_PlayerName is null");
|
|||
|
Destroy();
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|