IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/GameObject/IsWithinLayerMask.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

19 lines
431 B
C#

using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
namespace NodeCanvas.Tasks.Conditions
{
[Category("GameObject")]
public class IsWithinLayerMask : ConditionTask<Transform>
{
public BBParameter<LayerMask> targetLayers;
protected override bool OnCheck() {
return ParadoxNotion.ObjectUtils.IsInLayerMask(agent.gameObject, targetLayers.value);
}
}
}