static int GetType(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); Debugging obj = LuaScriptMgr.GetNetObject <Debugging>(L, 1); Type o = obj.GetType(); LuaScriptMgr.Push(L, o); return(1); }