static int UnloadAssets(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.UIPackage obj = (FairyGUI.UIPackage)ToLua.CheckObject <FairyGUI.UIPackage>(L, 1); obj.UnloadAssets(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }