public static void RegisterLuaWinRenderFunc(string winName, onLuaFuncEventHandle onRenderReset) { if (!_luaRenderResetFuncDict.ContainsKey(winName)) { _luaRenderResetFuncDict.Add(winName, onRenderReset); } }
public static void RegisterLuaFuncCall(string eventName, onLuaFuncEventHandle funcCall) { if (!_luaFuncCallDict.ContainsKey(eventName)) { _luaFuncCallDict.Add(eventName, funcCall); } }
public static void RegisterLuaWinFunc(string winName, onLuaFuncEventHandle onCreate, onLuaFuncEventHandle onDestroy) { if (!_luaOnCreateFuncDict.ContainsKey(winName)) { _luaOnCreateFuncDict.Add(winName, onCreate); } if (!_luaOnDestroyFuncDict.ContainsKey(winName)) { _luaOnDestroyFuncDict.Add(winName, onDestroy); } }