예제 #1
0
 public void PlayNextEvent()
 {
     if (index >= 0 && index < events.Count)
     {
         if (events[index].playableDirector != null)
         {
             events[index].PlayGroup();
         }
         if (events[index].anims.Count > 0)
         {
             StartCoroutine("PlayAnimsWithDelay");
         }
         if (events[index].musicDirection == MUSIC_DIRECTION.UP)
         {
             musicTrans.TransitionUp();
         }
         if (events[index].musicDirection == MUSIC_DIRECTION.DOWN)
         {
             musicTrans.TransitionDown();
         }
         moreTransitionsAvailanble = true;
     }
     else
     {
         moreTransitionsAvailanble = false;
     }
     index++;
 }
예제 #2
0
 public void PlayEvent()
 {
     if (animators.Count > 0)
     {
         foreach (Animator anim in animators)
         {
             anim.Play(animState);
         }
     }
     if (musicDirection == MUSIC_DIRECTION.UP)
     {
         musicTrans.TransitionUp();
     }
     if (musicDirection == MUSIC_DIRECTION.DOWN)
     {
         musicTrans.TransitionDown();
     }
 }