using UnityEngine; using System.Collections; public class AttackState : FSMState { public AttackState() { stateID = FSMStateID.Attacking; } public override void Reason(Transform player, Transform npc) { if (npc.GetComponent<AIController>().stateInfo…