Exemple #1
0
 public void EndTransition()
 {
     if (IsTransitioning)
     {
         BaseHelpers.StopCoroutine(transitioning);
     }
     transitioning = null;
 }
 public void StopMoving(bool arriveTargetPositionImmediately = false)
 {
     if (IsMoving)
     {
         BaseHelpers.StopCoroutine(moving);
         if (arriveTargetPositionImmediately)
         {
             SetPosition(targetPosition);
         }
     }
     moving = null;
 }
Exemple #3
0
 public void StopCoroutine(Coroutine coroutine)
 {
     BaseHelpers.StopCoroutine(coroutine);
 }