Files

17 lines
350 B
C#
Raw Permalink Normal View History

2024-06-03 10:11:43 +08:00
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
namespace NodeCanvas.Tasks.Conditions
{
[Category("GameObject")]
public class HasComponent<T> : ConditionTask<Transform> where T : Component
{
protected override bool OnCheck() {
return agent.GetComponent<T>() != null;
}
}
}