Пример #1
0
 public void Restart()
 {
     if (newGameAnim != null && panelAnim != null)
     {
         newGameAnim.SetBool("Out", true);
         panelAnim.SetBool("Out", true);
         panelAnim.SetBool("Game Over", false);
         //GameInfoAnim.SetBool("Out", false);
         //board.SetUp();
         //GameIntroPanel.SetActive(true);
         board       = FindObjectOfType <Board>();
         goalManager = FindObjectOfType <GoalManager>();
         board.ShuffleBoard();
         goalManager.RestartGoals();
         goalManager.UpdateGoals();
         scoreManager.score1 = 0;
         //scoreManager.UpdateBar1();
     }
 }