using MyCollections.AI.FinitStateMachine; using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(menuName = "Finite State Machine/Condition/HasNotGreet")] public class HasNotGreet : Condition { public override bool CheckCondition(FSM fsm) { Blacksmith controller = (Blacksmith)fsm.Controller; if (fsm.Controller.AgentFOV.GetTarget() != null) { if (controller != null) { return !controller.hasGreetPlayer; } return false; } return false; } }