protected override bool OnValidate()
 {
     if (target.target.isAssigned)
     {
         return((bool)target.Get());
     }
     return(false);
 }
Exemple #2
0
        protected override void OnExecute()
        {
            object val = target.Get();

            if (storeValue != null && storeValue.isTargeted)
            {
                storeValue.Set(val);
            }
        }
 protected override object Value()
 {
     if (target != null && target.target != null)
     {
         if (target.target.isAssigned)
         {
             return(target.Get());
         }
     }
     return(null);
 }
Exemple #4
0
 protected override bool OnValidate()
 {
     if (target.target.isAssigned && type.isAssigned)
     {
         System.Type t          = type.type;
         object      compareObj = target.Get();
         if (t != null)
         {
             if (compareObj != null && (compareObj.GetType() == t || compareObj.GetType().IsSubclassOf(t)))
             {
                 return(!inverted);
             }
             return(inverted);
         }
         else
         {
             return(false);
         }
     }
     throw new System.Exception();
 }
Exemple #5
0
 protected override bool OnValidate()
 {
     return(uNodeHelper.OperatorComparison(targetA.Get(), targetB.Get(), operatorType));
 }