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