Exemple #1
0
    void Start()
    {
        RestartButton.interactable = false;
        InAnimation = false;

        if (LevelManager.Instance.showTutorial == true && LevelManager.Instance.levelsData.tutorialCompleted == false)
        {
            UICanvas_Ending.DOFade(0, 0.01f);
            TutorialManager.Instance.StartTutorial();
        }
        else
        {
            if (!DontSpawnOnPlay)
            {
                TutorialManager.Instance.ButtonClick_EndTuto();
                StartGame(LevelManager.Instance.currentSelectedLevel, LevelManager.Instance.currentSelectedWorld);
            }
        }

        UIGetter_Level.UpdateAll();
        UIGetter_Moves.UpdateAll();
    }
Exemple #2
0
 private void SetCurrentLevelMoves(int newLevelMoves)
 {
     currentLevelMoves = newLevelMoves;
     UIGetter_Moves.UpdateAll();
 }