Beispiel #1
0
 public void EndQuickTimeEvent()
 {
     isInQTE = false;
     currentPlayer.Image.ChangeImageState();
     if (currentQTECounter >= QTECounter)
     {
         if (workbenchLevel == 3)
         {
             idol.Broke();
             audioSource.clip = audioFx.destroyClips[Random.Range(0, audioFx.buildClips.Count)];
         }
         else
         {
             idol.StatusUp(currentPlayer.playerIndex);
             audioSource.clip = audioFx.buildClips[Random.Range(0, audioFx.buildClips.Count)];
         }
         audioSource.Play();
     }
     currentQTECounter = 0;
     idol.onPlayer     = false;
 }