public void StartTransition(Sprite sprite, float speed, bool smooth) { if (IsCurrent(sprite)) { return; } EndTransition(); transitioning = BaseHelpers.StartCoroutine(TransitioningSprite(sprite, speed, smooth)); }
public Coroutine StartCoroutine(IEnumerator coroutineFunction) { return(BaseHelpers.StartCoroutine(coroutineFunction)); }
public void MoveTo(Vector2 target, float speed, bool smooth = true) { StopMoving(); moving = BaseHelpers.StartCoroutine(Moving(target, speed, smooth)); }