static int DestroyUIPrefab(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameResFactory obj = (GameResFactory)ToLua.CheckObject(L, 1, typeof(GameResFactory)); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject)); obj.DestroyUIPrefab(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }