public void ChangeSizeTo(Vector2 endSize, float duration, bool smooth, string onCompletionMessage) { _sizeInterval = new Vector2Interval(Size, endSize, duration, smooth); _sizeIntervalMessage = onCompletionMessage; }
public void MoveTo(Vector2 destination, float duration, bool smooth, string onCompletionMessage) { _positionInterval = new Vector2Interval(Position, destination, duration, smooth); _positionIntervalMessage = onCompletionMessage; }