mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update LogUI.cs
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using UnityEngine.UI;
|
||||
using System;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine.UI;
|
||||
using TEngine;
|
||||
|
||||
namespace GameLogic
|
||||
@@ -13,21 +15,23 @@ namespace GameLogic
|
||||
{
|
||||
m_textError = FindChildComponent<Text>("m_textError");
|
||||
m_btnClose = FindChildComponent<Button>("m_btnClose");
|
||||
m_btnClose.onClick.AddListener(OnClickCloseBtn);
|
||||
m_btnClose.onClick.AddListener(UniTask.UnityAction(OnClickCloseBtn));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 事件
|
||||
|
||||
private void OnClickCloseBtn()
|
||||
private async UniTaskVoid OnClickCloseBtn()
|
||||
{
|
||||
await UniTask.Delay(TimeSpan.FromSeconds(0.5f));
|
||||
|
||||
Close();
|
||||
}
|
||||
#endregion
|
||||
|
||||
public override void OnRefresh()
|
||||
{
|
||||
m_textError.text = UserData.ToString();
|
||||
}
|
||||
public override void OnRefresh()
|
||||
{
|
||||
m_textError.text = UserData.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user