Exemple #1
0
 public void StartGame()
 {
     BallSpawner.SetActive(true);
     InputManager.SetActive(true);
     startScreen.SetActive(false);
     layout.SetActive(true);
 }
Exemple #2
0
 public void Lose()
 {
     BallSpawner.SetActive(false);
     InputManager.SetActive(false);
     loseScoreText.text = scoreText.text;
     layout.SetActive(false);
     loseScreen.SetActive(true);
 }
Exemple #3
0
 public void Restart()
 {
     startScreen.SetActive(false);
     winScreen.SetActive(false);
     loseScreen.SetActive(false);
     BallSpawner.SetActive(false);
     InputManager.SetActive(false);
     Hole.GetComponent <Hole>().Restart();
     BallSpawner.GetComponent <BallSpawner>().Restart();
     layout.SetActive(true);
     BallSpawner.SetActive(true);
     InputManager.SetActive(true);
 }
Exemple #4
0
 // Start is called before the first frame update
 void Start()
 {
     BallSpawner.SetActive(false);
     InputManager.SetActive(false);
 }