示例#1
0
 public void Restart()//reset all vars in the playingScene scripts
 {
     PlayPressedBtnSound();
     gameOverMenu.SetActive(false);
     pauseBtn.SetActive(true);
     PlayingSceneManager.playerDied = false;//the ball is inside the screen again
     playerBall.ResetVars();
     wallPrefab.ResetVars();
     wallGenerator.ResetVars();
     playingSceneManager.ResetVars();
     scoreManager.ResetVars();
     backGround.ResetVars();
 }