public override void Pursue(Pursuee pursuee) { state = State.Pursue; this.pursuee = pursuee; waypoints = npc.Simulation.NavMesh.FindPath(npc.Position, pursuee.Object.Position, NavMeshNode(npc.Position), pursuee.RegionNode); currentWaypointIndex = 1; pursueUpdateAcc = 0f; //Console.WriteLine("Pursuing " + pursuee.Object.Position + " (#" + id++ + ", wp " + (waypoints != null ? "!=" : "==") + " null)"); IssueMotionLevelCommand(); }
public override void Pursue(Pursuee pursuee) { state = State.Pursue; this.pursuee = pursuee; }
public abstract void Pursue(Pursuee pursuee);
public override void Pursue(Pursuee pursuee) { state = State.Pursue; this.pursuee = pursuee; npc.navMeshLevelGoalState.Pursue(pursuee); }