Exemple #1
0
    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);
        }
    }
Exemple #2
0
    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 !");
    }