first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion;
|
||||
using ParadoxNotion.Design;
|
||||
|
||||
namespace NodeCanvas.Tasks.Conditions
|
||||
{
|
||||
|
||||
[Category("✫ Blackboard")]
|
||||
[Description("It's best to use the respective Condition for a type if existant since they support operations as well")]
|
||||
public class CheckVariable<T> : ConditionTask
|
||||
{
|
||||
|
||||
[BlackboardOnly]
|
||||
public BBParameter<T> valueA;
|
||||
public BBParameter<T> valueB;
|
||||
|
||||
protected override string info {
|
||||
get { return valueA + " == " + valueB; }
|
||||
}
|
||||
|
||||
protected override bool OnCheck() {
|
||||
return ObjectUtils.AnyEquals(valueA.value, valueB.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user