public override void FixedUpdate() { if (stateMachine.target == null) { stateMachine.SetStateTo <SearchLastKnownPositionState>(); return; } mover.SetPathTo(stateMachine.target.position); mover.RunToNextPoint(); }
public override void Start() { mover.SetPathTo(stateMachine.lastKnownPosition); mover.onPathComplete += OnPathComplete; }