using NodeCanvas.Framework; using ParadoxNotion; using ParadoxNotion.Design; using UnityEngine; namespace NodeCanvas.Tasks.Conditions { [Name("Check Parameter Int")] [Category("Animator")] public class MecanimCheckInt : ConditionTask { [RequiredField] public BBParameter parameter; public CompareMethod comparison = CompareMethod.EqualTo; public BBParameter value; protected override string info { get { return "Mec.Int " + parameter.ToString() + OperationTools.GetCompareString(comparison) + value; } } protected override bool OnCheck() { return OperationTools.Compare((int)agent.GetInteger(parameter.value), (int)value.value, comparison); } } }