void Awake() { #region Singleton if (Instance == null) { DontDestroyOnLoad(gameObject); Instance = this; } else if (Instance != this) { Destroy(gameObject); } #endregion Screen.SetResolution(1920, 1080, true); money = PlayerPrefs.GetInt("Money"); totalPlays = PlayerPrefs.GetInt("Plays"); PlayerPrefs.SetInt("Money", money); PlayerPrefs.SetInt("Plays", totalPlays); }