//do it by invoking method protected override bool OnCheck() { if (checkSet.selectedType == typeof(float) || checkSet.selectedType == typeof(int)) { return(TaskTools.Compare((System.IComparable)method.Invoke(agent, null), (System.IComparable)checkSet.objectValue, comparison)); } return(Equals(method.Invoke(agent, null), checkSet.objectValue)); }
//do it by invoking method protected override bool OnCheck() { object[] args = null; if (paramValue1.selectedType != null) { args = new object[] { paramValue1.objectValue } } ; if (checkSet.selectedType == typeof(float) || checkSet.selectedType == typeof(int)) { return(TaskTools.Compare((System.IComparable)method.Invoke(agent, args), (System.IComparable)checkSet.objectValue, comparison)); } return(Equals(method.Invoke(agent, args), checkSet.objectValue)); }
protected override bool OnCheck(){ return TaskTools.Compare(valueA.value, valueB.value, checkType, differenceThreshold); }
protected override bool OnCheck() { return(TaskTools.Compare(Vector3.Distance(agent.transform.position, CheckTarget.value.transform.position), distance.value, checkType, differenceThreshold)); }
protected override bool OnCheck() { return(TaskTools.Compare(valueA.value, valueB.value, checkType)); }