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;
|
using TEngine;
|
||||||
|
|
||||||
namespace GameLogic
|
namespace GameLogic
|
||||||
@@ -13,21 +15,23 @@ namespace GameLogic
|
|||||||
{
|
{
|
||||||
m_textError = FindChildComponent<Text>("m_textError");
|
m_textError = FindChildComponent<Text>("m_textError");
|
||||||
m_btnClose = FindChildComponent<Button>("m_btnClose");
|
m_btnClose = FindChildComponent<Button>("m_btnClose");
|
||||||
m_btnClose.onClick.AddListener(OnClickCloseBtn);
|
m_btnClose.onClick.AddListener(UniTask.UnityAction(OnClickCloseBtn));
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 事件
|
#region 事件
|
||||||
|
private async UniTaskVoid OnClickCloseBtn()
|
||||||
private void OnClickCloseBtn()
|
|
||||||
{
|
{
|
||||||
|
await UniTask.Delay(TimeSpan.FromSeconds(0.5f));
|
||||||
|
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
#endregion
|
#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