private void Awake() { SetUpSingleton(); difficulty = SettingsPlayerPrefsManager.GetSavedDifficulty(); mapSize = SettingsPlayerPrefsManager.GetSavedMapSize(); }
public static void SaveDifficulty(GameValuesController.Difficulty difficulty) { PlayerPrefs.SetString(DIFFICULTY_PLAYERPREFS_KEY, difficulty.ToString()); }