Exemplo n.º 1
0
 public void GetReward()
 {
     if (!_isCollected)
     {
         _soundEvents.PlayAudioClip(_soundEvents._tapSounds[2], _soundEvents._audioSourceEvents);
         _isCollected = true;
         _animation.Play();
         _caps.AddCap(_caps.GetCapsPerTaps() * 200);
         SaveCount();
         Destroy(gameObject, 1f);
     }
 }