Exemple #1
0
 void ResetRankingButton()
 {
     //first click
     //asks for confirmation
     if (!clickedOnce)
     {
         buttonText.GetComponent <UnityEngine.UI.Text>().text = "Certeza?";
         clickedOnce = true;
     }
     else //second click -> erases ranking
     {
         buttonText.GetComponent <UnityEngine.UI.Text>().text = "Resetar";
         RankingManager.ResetRanking();
         rankingTextContainer.GetComponent <rankingText>().ResetRanking();
         clickedOnce = false;
     }
 }