Пример #1
0
 public void StartTransition(Sprite sprite, float speed, bool smooth)
 {
     if (IsCurrent(sprite))
     {
         return;
     }
     EndTransition();
     transitioning = BaseHelpers.StartCoroutine(TransitioningSprite(sprite, speed, smooth));
 }
Пример #2
0
 public Coroutine StartCoroutine(IEnumerator coroutineFunction)
 {
     return(BaseHelpers.StartCoroutine(coroutineFunction));
 }
Пример #3
0
 public void MoveTo(Vector2 target, float speed, bool smooth = true)
 {
     StopMoving();
     moving = BaseHelpers.StartCoroutine(Moving(target, speed, smooth));
 }