summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/LuaEngine/Core/DelManager.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/LuaEngine/Core/DelManager.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/LuaEngine/Core/DelManager.cs')
-rw-r--r--Client/Assets/Scripts/LuaEngine/Core/DelManager.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/LuaEngine/Core/DelManager.cs b/Client/Assets/Scripts/LuaEngine/Core/DelManager.cs
new file mode 100644
index 00000000..9fdab099
--- /dev/null
+++ b/Client/Assets/Scripts/LuaEngine/Core/DelManager.cs
@@ -0,0 +1,52 @@
+//
+// DelManager.cs
+// Created by huailiang.peng on 2016-3-11 18:10:39
+//
+
+
+using UnityEngine;
+using System.Collections;
+using UILib;
+
+
+public class DelManager
+{
+ public delegate void VoidDelegate();
+
+ public delegate void BoolDelegate(bool state);
+
+ public delegate void StringDelegate(string str);
+
+ public delegate void FloatDelegate(float delta);
+
+ public delegate void VectorDelegate(Vector2 delta);
+
+ public delegate void ObjectDelegate(GameObject obj);
+
+ public delegate void KeyCodeDelegate(KeyCode key);
+
+ public delegate void GameObjDelegate(GameObject go);
+
+ public delegate void BytesDelegate(byte[] bytes);
+
+ public delegate void BtnDelegate(XUIButton btn);
+
+ public delegate void SprDelegate(XUISprite spr);
+
+ public static GameObjDelegate onGoClick = null;
+
+ public static ButtonClickEventHandler fButtonDelegate = null;
+
+ public static ButtonClickEventHandler sButtonDelegate = null;
+
+ public static SpriteClickEventHandler sprClickEventHandler = null;
+
+ public static void Clear()
+ {
+ fButtonDelegate = null;
+ sButtonDelegate = null;
+ onGoClick = null;
+ sprClickEventHandler = null;
+ }
+
+} \ No newline at end of file