using NodeCanvas.Framework; using ParadoxNotion.Design; using UnityEngine; namespace NodeCanvas.Tasks.Conditions { [Category("GameObject")] public class HasComponent : ConditionTask where T : Component { protected override bool OnCheck() { return agent.GetComponent() != null; } } }