static int Create3D(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(string))) { string arg0 = ToLua.ToString(L, 1); UnityEngine.GameObject o = GameAPI.Create3D(arg0); ToLua.Push(L, o); return(1); } else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(string), typeof(UnityEngine.Vector3))) { string arg0 = ToLua.ToString(L, 1); UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2); UnityEngine.GameObject o = GameAPI.Create3D(arg0, arg1); ToLua.Push(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(string), typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3))) { string arg0 = ToLua.ToString(L, 1); UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2); UnityEngine.Vector3 arg2 = ToLua.ToVector3(L, 3); UnityEngine.GameObject o = GameAPI.Create3D(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: GameAPI.Create3D")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }