示例#1
0
 public void ChestClick()
 {
     lastChestOpen = (ulong)DateTime.Now.Ticks;
     PlayerPrefs.SetString("LastChestOpen", DateTime.Now.Ticks.ToString());
     chestButton.interactable = false;
     chestButton.GetComponent <Animator>().Rebind();
     chestButton.GetComponent <Animator>().enabled = false;
     coinParticleSystem.Play();
     SaveData.AddCoins(500);
     coins.text = SaveData.GetCoins().ToString();
     coins.GetComponent <Animator>().SetTrigger("Pop");
     notificationsManager.CreateNotification(msToWait);
 }