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

@ -11,6 +11,7 @@ public class Helper
public static string serverip = null;
public static int serverport = 5999;
public static bool hosting = false;
public static float saved_volume;
public static void DisableAnalytics()
{
// Try disabling analytics https://docs.unity3d.com/ScriptReference/Analytics.Analytics-deviceStatsEnabled.html