public void Unload() { GameObject.Destroy(loadingBar); GameObject.Destroy(loadingButton); GameObject.Destroy(loadingRoot); GameObject.Destroy(optionsUIManager); //destroys all menu items (ModOptions) GameObject.Destroy(optionsMenuScreen); modOptions = null; backButton = null; optionsMenuScreen = null; optionsUIManager = null; loadingBar = null; loadingButton = null; loadingRoot = null; rootUIManager = null; loadingButtonPressed = false; UnityEngine.SceneManagement.SceneManager.sceneLoaded -= SceneLoaded; comms.DisableNode(); comms = null; Instance = null; }
///Revert all changes the mod has made public void Unload() { DisableEnemyRandomizer(); UnRegisterCallbacks(); menu.Unload(); loader.Unload(); database.Unload(); ModRoot = null; comms.DisableNode(); Instance = null; }
public void Unload() { comms.DisableNode(); Instance = null; }
///Revert all changes the mod has made public void Unload() { UnRegisterCallbacks(); comms.DisableNode(); Instance = null; }