示例#1
0
 void Counter()
 {
     a = System.Convert.ToInt32(walletAll.text);
     if (a < PlayerPrefs.GetInt("cash") - 200)
     {
         a += 300;
         walletAll.fontSize = 28;
         Invoke("fountStyle", 0.05f);
     }
     else
     {
         a = PlayerPrefs.GetInt("cash");
         CancelInvoke("Counter");
         Invoke("animatoreValueSet", 3f);
         walletAll.gameObject.GetComponent <Animator>().SetInteger("Coinscounted", 1);
         dontDestroy.instance.sound[8].Stop();
     }
     walletAll.text = a.ToString();
     if (a > 3000)
     {
         NotificationIcon.SetActive(true);
     }
     else
     {
         NotificationIcon.SetActive(false);
     }
 }