Method in VariableStorageBehaviour
Registers a delegate that will be called when any variable is modified.
Action<string, object> onChange
The delegate to run when the variable changes value.
An System.IDisposable that removes the registration when its System.IDisposable.Dispose method is called.
public IDisposable AddChangeListener(System.Action<string, object> onChange)