From 0d27f784f454192f1fbc952482489e6d8c0eda15 Mon Sep 17 00:00:00 2001
From: ALEXTANG <574809918@qq.com>
Date: Tue, 11 Apr 2023 10:38:01 +0800
Subject: [PATCH] Update IUIBehaviour.cs
---
.../Runtime/GameFramework/UI/IUIBehaviour.cs | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/Assets/TEngine/Runtime/GameFramework/UI/IUIBehaviour.cs b/Assets/TEngine/Runtime/GameFramework/UI/IUIBehaviour.cs
index 12a61c2f..b580cfa3 100644
--- a/Assets/TEngine/Runtime/GameFramework/UI/IUIBehaviour.cs
+++ b/Assets/TEngine/Runtime/GameFramework/UI/IUIBehaviour.cs
@@ -5,12 +5,40 @@
///
public interface IUIBehaviour
{
+ ///
+ /// 自动生成代码绑定。
+ ///
void ScriptGenerator();
+
+ ///
+ /// 绑定自定义UI元素。
+ ///
void BindMemberProperty();
+
+ ///
+ /// 注册UI事件。
+ /// 方法=>AddUIEvent 在面板Destroy的时候会自动移除监听。
+ ///
void RegisterEvent();
+
+ ///
+ /// 面板创建成功。
+ ///
void OnCreate();
+
+ ///
+ /// 面板刷新。
+ ///
void OnRefresh();
+
+ ///
+ /// 面板轮询。
+ ///
void OnUpdate();
+
+ ///
+ /// 面板销毁。
+ ///
void OnDestroy();
}
}
\ No newline at end of file