예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }