Exemple #1
0
    void Start()
    {
        strt = Startbtn.GetComponent <Button>();
        quit = Quitbtn.GetComponent <Button>();

        strt.onClick.AddListener(StartGame);
        quit.onClick.AddListener(QuitApp);
    }
Exemple #2
0
 private void StartGame()
 {
     Paddle1.SetActive(true);
     Paddle2.SetActive(true);
     Ball.SetActive(true);
     Walls.SetActive(true);
     Texts.SetActive(true);
     Startbtn.SetActive(false);
     Quitbtn.SetActive(false);
 }