25 lines
519 B
C#
25 lines
519 B
C#
using NodeCanvas.Framework;
|
|
using ParadoxNotion.Design;
|
|
|
|
|
|
namespace NodeCanvas.Tasks.Conditions
|
|
{
|
|
|
|
[Category("✫ Blackboard")]
|
|
public class CheckBoolean : ConditionTask
|
|
{
|
|
|
|
[BlackboardOnly]
|
|
public BBParameter<bool> valueA;
|
|
public BBParameter<bool> valueB = true;
|
|
|
|
protected override string info {
|
|
get { return valueA + " == " + valueB; }
|
|
}
|
|
|
|
protected override bool OnCheck() {
|
|
|
|
return valueA.value == valueB.value;
|
|
}
|
|
}
|
|
} |