IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/Blackboard/CheckString.cs

24 lines
514 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
using NodeCanvas.Framework;
using ParadoxNotion.Design;
namespace NodeCanvas.Tasks.Conditions
{
[Category("✫ Blackboard")]
public class CheckString : ConditionTask
{
[BlackboardOnly]
public BBParameter<string> valueA;
public BBParameter<string> valueB;
protected override string info {
get { return valueA + " == " + valueB; }
}
protected override bool OnCheck() {
return valueA.value == valueB.value;
}
}
}