private static bool Unload(UnityModManager.ModEntry modEntry) { foreach (var obj in Objects) { UnityEngine.Object.DestroyImmediate(obj); } BlueprintExensions.ResetCollationCache(); HarmonyInstance.UnpatchAll(modId); NeedsActionInit = true; return(true); }
private static void ResetGUI(UnityModManager.ModEntry modEntry) { settings = UnityModManager.ModSettings.Load <Settings>(modEntry); settings.searchText = ""; settings.searchLimit = 100; BagOfTricks.ResetGUI(); LevelUp.ResetGUI(); PartyEditor.ResetGUI(); CrusadeEditor.ResetGUI(); CharacterPicker.ResetGUI(); BlueprintBrowser.ResetGUI(); QuestEditor.ResetGUI(); BlueprintExensions.ResetCollationCache(); caughtException = null; }