Exemplo n.º 1
0
 public void StartGame()
 {
     BallSpawner.SetActive(true);
     InputManager.SetActive(true);
     startScreen.SetActive(false);
     layout.SetActive(true);
 }
Exemplo n.º 2
0
 public void Lose()
 {
     BallSpawner.SetActive(false);
     InputManager.SetActive(false);
     loseScoreText.text = scoreText.text;
     layout.SetActive(false);
     loseScreen.SetActive(true);
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     BallSpawner.SetActive(false);
     InputManager.SetActive(false);
 }