From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/LuaEngine/Core/DelManager.cs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Client/Assets/Scripts/LuaEngine/Core/DelManager.cs (limited to 'Client/Assets/Scripts/LuaEngine/Core/DelManager.cs') 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 -- cgit v1.1-26-g67d0