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

25 lines
606 B
C#

using NodeCanvas.Framework;
using ParadoxNotion.Design;
namespace NodeCanvas.Tasks.Conditions
{
[Category("✫ Blackboard")]
public class StringContains : ConditionTask
{
[RequiredField]
[BlackboardOnly]
public BBParameter<string> targetString;
public BBParameter<string> checkString;
protected override string info {
get { return string.Format("{0} Contains {1}", targetString, checkString); }
}
protected override bool OnCheck() {
return targetString.value.Contains(checkString.value);
}
}
}