static int CreateCube(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); UnityEngine.GameObject o = GameUtil.CreateCube(); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }