Esempio n. 1
0
 public void GiveGift()
 {
     isGet = true;
     goldParticle.Play();
     cloudParticle.Play();
     SoundCenter.sounds.PlayCoin();
     gift.SetActive(false);
     CommonVariables.GoldGift = Random.Range(minReward, maxReward);
     CommonVariables.Gold    += CommonVariables.GoldGift;
     disText.SetGoldText();
     goldText.SetGoldText();
     timeGive = DateTime.Now;
 }