Beispiel #1
0
        public void OnApplicationStart()
        {
            //Harmony
            Harmony = new HarmonyLib.Harmony(HarmonyId);
            Harmony.PatchAll(Assembly.GetExecutingAssembly());

            ControllersHelper.Init();
            new GameObject("MicMuterController").AddComponent <MicMuterController>();

            //Gameplay events to mute/unmute
            EventMute.Setup();

            //Register mod settings menu button
            BSMLSettings.instance.AddSettingsMenu("MicMuter", "MicMuter.UI.ConfigView.bsml", ConfigView.instance);

            //Microphone device setup
            MicDeviceUtils.Setup();
        }
Beispiel #2
0
 public void OnApplicationQuit()
 {
     EventMute.Cleanup();
     MuteButtonWindowController.Instance.Cleanup();
     MicDeviceUtils.SetMicMute(false);
 }