Example #1
0
 /// <summary>
 /// Runs a new animation coroutine from <see cref="animationQueue"/> if there are none currently running.
 /// </summary>
 private void RunAnimationQueue()
 {
     if (animationQueue.Count != 0)
     {
         if (!currentlyAnimating)
         {
             currentAnimation = animationQueue.Dequeue();
             StartCoroutine(currentAnimation);
         }
     }
     else if (animationScript.IsLooping())
     {
         animationScript.PlayAnimation();
     }
 }