Exemple #1
0
 private void Cut(GameObject go)
 {
     if (go.CompareTag("Woodpeakear"))
     {
         _timeLastCut = _timeOfCut;
         _timeOfCut   = Time.time;
         if (_timeOfCut - _timeLastCut <= Watcher.ComboTimeLimit)
         {
             Watcher.ComboCount += 1;
         }
         else if (Time.time - _timeLastCut >= Watcher.ComboTimeLimit)
         {
             Watcher.ComboCount = 1;
         }
         else
         {
             Watcher.ComboCount = 1;
         }
         KillWoodpeaker(go);
         _specialEffects.UpdateSpecialQuantity(Watcher.ComboCount);
     }
     else if (go.CompareTag("pidgeon"))
     {
         KillPidgeon(go);
         _watcher.GivePenalty();
     }
     else if (go.CompareTag("unilol"))
     {
         StopCutting();
         StopMusicPlayNacibSoundEffect();
         _specialEffects.NacibApear(go);
         StartCoroutine(DeactivateBlade());
     }
 }