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; }
public void StopCoroutine(Coroutine coroutine) { BaseHelpers.StopCoroutine(coroutine); }