using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(menuName = "Finite State Machine/Condition/Player Sight")] public class PlayerSightCondition : Condition { protected override bool Test(FiniteStateMachine fsm) { return PlayerSight.canSee.Contains(fsm.gameObject); } }