public override void Awake() { base.Awake(); #if UNITY_EDITOR PlayerPrefTutorial.ResetTutorial(); #endif startTutorial = !SetPlayerPref.GetPlayerTutorial(); if (startTutorial == false) { startTutorial = true; GameManager.TutorialMode = true; PlayerPrefTutorial.SetPlayerTutorial(tutorialFase); TooglePainelTutorial(true); } if (PlayerPrefTutorial.GetPlayerTutorial() > tutorialFinal) { TooglePainelTutorial(false); } }
void Awake() { _score = Manager.Instance.Score; _name = Manager.Instance.Name; _scoreManager = new ScoreManager(); ScoreManager.Load(); _scoreManager.Add(new Score { Value = _score, PlayerName = _name }); ScoreManager.Save(_scoreManager); SetPlayerPref.SaveAll(); Debug.LogWarning("Finished !"); }