/// <summary> /// Move to another sprite's position in a set amount of time and then stop /// </summary> /// <param name="otherSprite">Sprite to move to</param> /// <param name="seconds">How long to take to get there</param> public void GlideTo(GraphicObject otherSprite, float seconds) { GlideTo(otherSprite.Position, seconds, null); }
/// <summary> /// Move to another sprite's position in a set amount of time and then stop /// </summary> /// <param name="otherSprite">Sprite to move to</param> /// <param name="seconds">How long to take to get there</param> public void GlideTo(GraphicObject otherSprite, float seconds, Action glideComplete) { GlideTo(otherSprite.Position, seconds, glideComplete); }