Пример #1
0
 private void Unload()
 {
     RemoveEvents();
     CustomMaterialsPatches.RemoveHarmonyPatches();
     Configuration.Save();
     MaterialAssetLoader.Clear();
     SettingsUI.RemoveMenu();
 }
Пример #2
0
        private void Load()
        {
            Configuration.Load();
            MaterialAssetLoader.Load();
            CustomMaterialsPatches.ApplyHarmonyPatches();
            SettingsUI.CreateMenu();
            AddEvents();

            Logger.log.Info($"{PluginName} v.{PluginVersion} has started.");
        }