void Start() { strt = Startbtn.GetComponent <Button>(); quit = Quitbtn.GetComponent <Button>(); strt.onClick.AddListener(StartGame); quit.onClick.AddListener(QuitApp); }
private void StartGame() { Paddle1.SetActive(true); Paddle2.SetActive(true); Ball.SetActive(true); Walls.SetActive(true); Texts.SetActive(true); Startbtn.SetActive(false); Quitbtn.SetActive(false); }