static int LoadPrefab(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { string arg0 = ToLua.CheckString(L, 1); System.Action <UnityEngine.GameObject> arg1 = (System.Action <UnityEngine.GameObject>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject> >(L, 2); GameAsset.LoadPrefab(arg0, arg1); return(0); } else if (count == 3) { string arg0 = ToLua.CheckString(L, 1); System.Action <UnityEngine.GameObject> arg1 = (System.Action <UnityEngine.GameObject>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject> >(L, 2); bool arg2 = LuaDLL.luaL_checkboolean(L, 3); GameAsset.LoadPrefab(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: GameAsset.LoadPrefab")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }