Return false if value was not changed in Variable

This commit is contained in:
Adam Ramberg 2019-04-05 13:40:26 +02:00
parent 16ab2263b3
commit 0e6c5c6800

View File

@ -32,9 +32,10 @@ namespace UnityAtoms
this.value = value;
if (Changed != null) { Changed.Raise(value); }
if (ChangedWithHistory != null) { ChangedWithHistory.Raise(this.value, this.oldValue); }
return true;
}
return true;
return false;
}
public bool SetValue(ScriptableObjectVariable<T, E1, E2> variable)
@ -42,4 +43,4 @@ namespace UnityAtoms
return SetValue(variable.Value);
}
}
}
}