예제 #1
0
 public override void OnInteract()
 {
     if (_caps.GetCaps() >= _price)
     {
         _soundEvents.PlayAudioClip(_soundEvents._tapSounds[3], _soundEvents._audioSourceTaps);
         _caps.DepriveCaps(_price);
         _panelCloser.OpenPanel(_codePanel);
     }
     else
     {
         _soundEvents.PlayAudioClip(_soundEvents._tapSounds[4], _soundEvents._audioSourceTaps);
     }
 }
예제 #2
0
 public override void OnInteract()
 {
     if (_caps.GetCaps() >= _price)
     {
         _soundEvents.PlayAudioClip(_soundEvents._tapSounds[3], _soundEvents._audioSourceTaps);
         _caps.DepriveCaps(_price);
         _caps.AddCapsPerTap(_growrh);
         _price = (int)(_price * 5.5f);
         _level++;
         Draw();
         PlayerPrefs.SetInt(_name, _level);
         SaveContUps();
     }
     else
     {
         _soundEvents.PlayAudioClip(_soundEvents._tapSounds[4], _soundEvents._audioSourceTaps);
     }
 }