public ReactiveValue (EntityReference senderID, Action <EntityReference, T> callback, T initialValue = default , bool notifyImmediately = false, ReactiveType notifyOnChange = ReactiveType.ReactOnChange) { _subscriber = callback; if (notifyImmediately) { _subscriber(_senderID, initialValue); } _senderID = senderID; _value = initialValue; _notifyOnChange = notifyOnChange; }
public ReactiveValue(EntityReference senderID, Action <EntityReference, T> callback, ReactiveType notifyOnChange) { _subscriber = callback; _notifyOnChange = notifyOnChange; _senderID = senderID; }