protected override bool OnValidate() { if (target.target.isAssigned) { return((bool)target.Get()); } return(false); }
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); }
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(); }
protected override bool OnValidate() { return(uNodeHelper.OperatorComparison(targetA.Get(), targetB.Get(), operatorType)); }