static int CreateFish(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 4 && TypeChecker.CheckTypes <UnityEngine.Transform, LuaInterface.LuaFunction>(L, 3)) { string arg0 = ToLua.CheckString(L, 1); LuaTable arg1 = ToLua.CheckLuaTable(L, 2); UnityEngine.Transform arg2 = (UnityEngine.Transform)ToLua.ToObject(L, 3); LuaFunction arg3 = ToLua.ToLuaFunction(L, 4); ResourceLoad.CreateFish(arg0, arg1, arg2, arg3); return(0); } else if (count == 4 && TypeChecker.CheckTypes <UnityEngine.GameObject, LuaInterface.LuaFunction>(L, 3)) { string arg0 = ToLua.CheckString(L, 1); LuaTable arg1 = ToLua.CheckLuaTable(L, 2); UnityEngine.GameObject arg2 = (UnityEngine.GameObject)ToLua.ToObject(L, 3); LuaFunction arg3 = ToLua.ToLuaFunction(L, 4); ResourceLoad.CreateFish(arg0, arg1, arg2, arg3); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: ResourceLoad.CreateFish")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }