IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/GameObject/IsActive.cs

17 lines
393 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
namespace NodeCanvas.Tasks.Conditions
{
[Category("GameObject")]
public class IsActive : ConditionTask<Transform>
{
protected override string info => agentInfo + " is Active";
protected override bool OnCheck() {
return agent.gameObject.activeInHierarchy;
}
}
}