static int CopyGameObject(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(Game.Utils), typeof(UnityEngine.Transform))) { Game.Utils obj = (Game.Utils)ToLua.ToObject(L, 1); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.ToObject(L, 2); UnityEngine.GameObject o = obj.CopyGameObject(arg0); ToLua.Push(L, o); return(1); } else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(Game.Utils), typeof(UnityEngine.GameObject))) { Game.Utils obj = (Game.Utils)ToLua.ToObject(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.ToObject(L, 2); UnityEngine.GameObject o = obj.CopyGameObject(arg0); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: Game.Utils.CopyGameObject")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }