Exemplo n.º 1
0
        private void Destroy()
        {
            Instance = null;

            Commands.UnregisterCommands();

            ModSupport.UnregisterHooks();

            Saving.UnregisterHooks();
            Loading.UnregisterHooks();

            LobbyUI.UnregisterHooks();
        }
Exemplo n.º 2
0
        private void Awake()
        {
            Instance = this;

            SaveFileMetadata.PopulateSavesMetadata();

            ModSupport.GatherLoadedPlugins();
            ModSupport.RegisterHooks();

            Saving.RegisterHooks();
            Loading.RegisterHooks();

            LobbyUI.RegisterHooks();

            Commands.RegisterCommands();
        }