feat: start/stop server handling

The original app volume is also restored when the server is stopped.
This commit is contained in:
anavoi 2025-07-13 23:47:40 +02:00
commit 5eedbf2f1e
4 changed files with 35 additions and 7 deletions

View file

@ -67,6 +67,9 @@ public class Plugin : BaseUnityPlugin
// "-maplist" CLI
Helper.CheckCustomRotationPath();
// store app volume in a variable to restore it if needed
Helper.saved_volume = AudioListener.volume;
}
private static void GBSUCompInit()