- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- [CreateAssetMenu(menuName = "Finite State Machine/Action/Stalker Attack")]
- public class StalkerAttackAction : Action
- {
- public override void Act(FiniteStateMachine fsm)
- {
-
- if (fsm.target != null)
- {
- fsm.GetAgent().MoveToTarget();
-
- }
- }
- }