private void Destroy() { Instance = null; Commands.UnregisterCommands(); ModSupport.UnregisterHooks(); Saving.UnregisterHooks(); Loading.UnregisterHooks(); LobbyUI.UnregisterHooks(); }
private void Awake() { Instance = this; SaveFileMetadata.PopulateSavesMetadata(); ModSupport.GatherLoadedPlugins(); ModSupport.RegisterHooks(); Saving.RegisterHooks(); Loading.RegisterHooks(); LobbyUI.RegisterHooks(); Commands.RegisterCommands(); }