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

26 lines
669 B
C#

using NodeCanvas.Framework;
using ParadoxNotion;
using ParadoxNotion.Design;
namespace NodeCanvas.Tasks.Conditions
{
[Category("✫ Blackboard")]
public class CheckInt : ConditionTask
{
[BlackboardOnly]
public BBParameter<int> valueA;
public CompareMethod checkType = CompareMethod.EqualTo;
public BBParameter<int> valueB;
protected override string info {
get { return valueA + OperationTools.GetCompareString(checkType) + valueB; }
}
protected override bool OnCheck() {
return OperationTools.Compare((int)valueA.value, (int)valueB.value, checkType);
}
}
}