Exemple #1
0
    private void Awake()
    {
        scoreText     = transform.Find("scoreText").GetComponent <Text>();
        highScoreText = transform.Find("highScoreText").GetComponent <Text>();

        retryBtn = transform.Find("retryBtn").GetComponent <Button>();
        retryBtn.onClick.AddListener(HandleClickRetryButton);
        retryBtn.AddButtonSounds();

        mainMenuBtn = transform.Find("mainMenuBtn").GetComponent <Button>();
        mainMenuBtn.onClick.AddListener(HandleClickMainMenuButton);
    }