Example #1
0
        //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));
        }
Example #2
0
        //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));
        }
Example #3
0
		protected override bool OnCheck(){
			return TaskTools.Compare(valueA.value, valueB.value, checkType, differenceThreshold);
		}
Example #4
0
 protected override bool OnCheck()
 {
     return(TaskTools.Compare(Vector3.Distance(agent.transform.position, CheckTarget.value.transform.position), distance.value, checkType, differenceThreshold));
 }
Example #5
0
 protected override bool OnCheck()
 {
     return(TaskTools.Compare(valueA.value, valueB.value, checkType));
 }