static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); MyFrameWork.GameManager obj = (MyFrameWork.GameManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.GameManager)); obj.Init(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetLastInputID(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); MyFrameWork.GameManager obj = (MyFrameWork.GameManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.GameManager)); string o = obj.GetLastInputID(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }