feat: start/stop server handling
The original app volume is also restored when the server is stopped.
This commit is contained in:
parent
962bcaf199
commit
5eedbf2f1e
4 changed files with 35 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue