예제 #1
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
예제 #2
0
 public void PlaySuccessClip()
 {
     if (!firstHit)
     {
         index++;
     }
     else
     {
         firstHit = false;
     }
     this.gameObject.audio.PlayOneShot(popped[index % popped.Count], 1.0f);
     CircleGameManager.ResetMissCount();
 }
예제 #3
0
 public void PlayMissedClip(CircleBehaviour missedCircle)
 {
     if ((missedCircle.partnerCircle == null) || (!missedCircle.partnerCircle.fading))
     {
         if ((index - 1) <= 0)
         {
             index = 0;
             CircleGameManager.IncreaseMissCount();
         }
         else
         {
             index--;
         }
     }
     this.gameObject.audio.PlayOneShot(popped[index % popped.Count], 1.0f);
 }