Format files
This commit is contained in:
8 files changed
+1534
-1534
No files matched your search
+17
-17
@@ -5,24 +5,24 @@ using UnityEngine.UI;
|
||||
|
||||
public class Loading : MonoBehaviour
|
||||
{
|
||||
public float clientVersion;
|
||||
public float clientVersion;
|
||||
|
||||
public TMP_Text statusText;
|
||||
public TMP_Text statusText;
|
||||
|
||||
public Button updateButton;
|
||||
public Button updateButton;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
QualitySettings.vSyncCount = PlayerPrefs.GetInt("Setting5", 1);
|
||||
Screen.fullScreen = PlayerPrefs.GetInt("Setting1", 1) == 1;
|
||||
PlayerPrefs.SetFloat("latestVersion", clientVersion);
|
||||
if (!PlayerPrefs.HasKey("iconSelected"))
|
||||
{
|
||||
PlayerPrefs.SetInt("iconSelected", 1);
|
||||
}
|
||||
PlayerPrefs.SetInt("icon", Mathf.Clamp(PlayerPrefs.GetInt("icon", 0), 1, 4));
|
||||
PlayerPrefs.SetInt("overlay", Mathf.Clamp(PlayerPrefs.GetInt("overlay", 0), 0, 9));
|
||||
PlayerPrefs.Save();
|
||||
SceneManager.LoadScene("Menu");
|
||||
}
|
||||
private void Awake()
|
||||
{
|
||||
QualitySettings.vSyncCount = PlayerPrefs.GetInt("Setting5", 1);
|
||||
Screen.fullScreen = PlayerPrefs.GetInt("Setting1", 1) == 1;
|
||||
PlayerPrefs.SetFloat("latestVersion", clientVersion);
|
||||
if (!PlayerPrefs.HasKey("iconSelected"))
|
||||
{
|
||||
PlayerPrefs.SetInt("iconSelected", 1);
|
||||
}
|
||||
PlayerPrefs.SetInt("icon", Mathf.Clamp(PlayerPrefs.GetInt("icon", 0), 1, 4));
|
||||
PlayerPrefs.SetInt("overlay", Mathf.Clamp(PlayerPrefs.GetInt("overlay", 0), 0, 9));
|
||||
PlayerPrefs.Save();
|
||||
SceneManager.LoadScene("Menu");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user