refactor: wip
This commit is contained in:
parent
4b61948f68
commit
0cb7131435
5 changed files with 69 additions and 45 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue