static int _CreateMyFrameWork_EventDispatcher(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { MyFrameWork.EventDispatcher obj = new MyFrameWork.EventDispatcher(); ToLua.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: MyFrameWork.EventDispatcher.New"); } return(0); }
/// <summary> /// 服务器回调Lua -> 指引到这个方法 /// </summary> public void OnFindOpponentCBK() { EventDispatcher.TriggerEvent("OpponentReady"); }