public void Awake() { instance = this; gameObject.AddComponent <UIManager>(); gameObject.AddComponent <AssetManager>(); gameObject.AddComponent <ILoaderManager>(); gameObject.AddComponent <NetManager>(); gameObject.AddComponent <LuaEventProcess>(); LuaAndCMsgCenter luaAndCMsgCenter = gameObject.AddComponent <LuaAndCMsgCenter>(); LuaEventProcess.Instance.SettingChild(luaAndCMsgCenter); }
static int set_instance(IntPtr L) { try { LuaAndCMsgCenter arg0 = (LuaAndCMsgCenter)ToLua.CheckUnityObject(L, 2, typeof(LuaAndCMsgCenter)); LuaAndCMsgCenter.instance = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SettingLuaCallBack(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaAndCMsgCenter obj = (LuaAndCMsgCenter)ToLua.CheckObject(L, 1, typeof(LuaAndCMsgCenter)); LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2); obj.SettingLuaCallBack(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ProcessEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaAndCMsgCenter obj = (LuaAndCMsgCenter)ToLua.CheckObject(L, 1, typeof(LuaAndCMsgCenter)); U3DEventFrame.MsgBase arg0 = (U3DEventFrame.MsgBase)ToLua.CheckObject(L, 2, typeof(U3DEventFrame.MsgBase)); obj.ProcessEvent(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ProcessEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaAndCMsgCenter obj = (LuaAndCMsgCenter)ToLua.CheckObject <LuaAndCMsgCenter>(L, 1); MsgBase arg0 = (MsgBase)ToLua.CheckObject <MsgBase>(L, 2); obj.ProcessEvent(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Instance(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaAndCMsgCenter obj = (LuaAndCMsgCenter)o; LuaAndCMsgCenter ret = obj.Instance; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Instance on a nil value")); } }
void Awake() { instance = this; }
private void Awake() { instance = this; }
void Awake() { instance = this; LuaEventProcess.instance.SettingChild(this); }
void Start() { LuaAndCMsgCenter landcCenter = gameObject.AddComponent <LuaAndCMsgCenter>(); LuaEventProcess.Instance.setMonoChild(landcCenter); }