first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user