refactor: wip

This commit is contained in:
anavoi 2025-07-13 16:16:41 +02:00
commit 0cb7131435
5 changed files with 69 additions and 45 deletions

View file

@ -8,6 +8,9 @@ public class Helper
{
public static string RotationFolderPath = Application.dataPath + "/Config/Rotation/";
public static string GameConfigPath = RotationFolderPath + "config.json";
public static string serverip = null;
public static int serverport = 5999;
public static bool hosting = false;
public static void DisableAnalytics()
{
// Try disabling analytics https://docs.unity3d.com/ScriptReference/Analytics.Analytics-deviceStatsEnabled.html
@ -57,4 +60,16 @@ public class Helper
return $"There are {number} files: {names}";
}
}
public static void FlipVSync()
{
if (QualitySettings.vSyncCount == 0)
{
QualitySettings.vSyncCount = 1;
}
else
{
QualitySettings.vSyncCount = 0;
}
}
}