예제 #1
0
        public override void FixedUpdate()
        {
            if (stateMachine.target == null)
            {
                stateMachine.SetStateTo <SearchLastKnownPositionState>();

                return;
            }

            mover.SetPathTo(stateMachine.target.position);
            mover.RunToNextPoint();
        }
 public override void FixedUpdate()
 {
     mover.RunToNextPoint();
     SwitchToWanderingStateIfPathIsBlocked();
 }