mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update net Demo
Update net Demo
This commit is contained in:
59
TEngineHotUpdate/src/TEngineCore/UI/Demo/TEngineUI.cs
Normal file
59
TEngineHotUpdate/src/TEngineCore/UI/Demo/TEngineUI.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace TEngineCore
|
||||
{
|
||||
public class TEngineUI : UIWindow
|
||||
{
|
||||
#region 脚本工具生成的代码
|
||||
private Image m_imgbg;
|
||||
private Text m_textTittle;
|
||||
private Text m_textVer;
|
||||
protected override void ScriptGenerator()
|
||||
{
|
||||
m_imgbg = FindChildComponent<Image>("m_imgbg");
|
||||
m_textTittle = FindChildComponent<Text>("m_textTittle");
|
||||
m_textVer = FindChildComponent<Text>("m_textVer");
|
||||
|
||||
TLogger.LogInfo("TEngineUI ScriptGenerator");
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected override void RegisterEvent()
|
||||
{
|
||||
GameEventMgr.Instance.AddEventListener<string>(2,((s) =>
|
||||
{
|
||||
TLogger.LogWarning("RegisterEvent");
|
||||
}));
|
||||
}
|
||||
|
||||
protected override void BindMemberProperty()
|
||||
{
|
||||
base.BindMemberProperty();
|
||||
|
||||
TLogger.LogInfo("TEngineUI BindMemberProperty");
|
||||
}
|
||||
|
||||
protected override void OnCreate()
|
||||
{
|
||||
base.OnCreate();
|
||||
|
||||
TLogger.LogInfo("TEngineUI OnCreate");
|
||||
}
|
||||
|
||||
protected override void OnVisible()
|
||||
{
|
||||
base.OnVisible();
|
||||
|
||||
TLogger.LogInfo("TEngineUI OnVisible");
|
||||
}
|
||||
|
||||
protected override void OnUpdate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#region 事件
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user