public GuardPointAI(Vector2 inPoint) { this.point = inPoint; mtpAi = new MoveToPointAI(inPoint, 0); }
public override void Update(Microsoft.Xna.Framework.GameTime dt, Entity aiActor) { //Create an instance of move to point with the targets position as a parameter MoveToPointAI mtpAi = new MoveToPointAI(target.position, adjustLimit); //Update the move to point ai mtpAi.Update(dt, aiActor); this.lastDifference = mtpAi.lastDifference; }