private void Awake() { PlayerPrefs.SetString("GameLevelInfo", null); string info = PlayerPrefs.GetString("GameLevelInfo"); if (string.IsNullOrEmpty(info)) { GameLevelInfo = GameLevelInfo.GetEmptyGameLevelInfo(MaxLevel); } else { GameLevelInfo = GameLevelInfo.GetGameLevelInfo(); } }
private void Awake() { //PlayerPrefs.SetString("GameLevelInfo", null); string info = PlayerPrefs.GetString("GameLevelInfo"); ; if (string.IsNullOrEmpty(info)) { GameLevelInfo = GameLevelInfo.GetEmptyGameLevelInfo(MaxLevel); } else { GameLevelInfo = GameLevelInfo.GetGameLevelInfo(); } IsPlaySound = true; SetMusic(); }