Ejemplo n.º 1
0
    public void Show()
    {
        if (buttonClick == null)
        {
            audioSource.Play();
        }
        else
        {
            audioSource.PlayOneShot(buttonClick);
        }

        if (showingMore)
        {
            highscoresScript.Top = 10;
            showButtonText.text  = "Show More";
        }
        else
        {
            highscoresScript.Top = 100;
            showButtonText.text  = "Show Less";
        }

        highscoresScript.GetHighScores();
        showingMore = !showingMore;
    }