We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed70bbb + 2e169da commit 79038d8Copy full SHA for 79038d8
1 file changed
MLAPI/Data/NetworkedVar.cs
@@ -89,7 +89,10 @@ public T Value
89
if (!EqualityComparer<T>.Default.Equals(InternalValue, value))
90
{
91
isDirty = true;
92
+ T previousValue = InternalValue;
93
InternalValue = value;
94
+ if (OnValueChanged != null)
95
+ OnValueChanged(previousValue, InternalValue);
96
}
97
98
0 commit comments