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