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