mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
Return false if value was not changed in Variable
This commit is contained in:
parent
16ab2263b3
commit
0e6c5c6800
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user