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