static int OnLogOut(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); MFrameWork.MBaseSingleton obj = (MFrameWork.MBaseSingleton)ToLua.CheckObject <MFrameWork.MBaseSingleton>(L, 1); obj.OnLogOut(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); MFrameWork.MBaseSingleton obj = (MFrameWork.MBaseSingleton)ToLua.CheckObject <MFrameWork.MBaseSingleton>(L, 1); bool o = obj.Init(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }