internal static void RemoveLivePropertyChanged(Type type, LivePropertyChangedCallback callback) { s_LivePropertyChangedCallbacks[type] -= callback; if (s_LivePropertyChangedCallbacks[type] == null) { s_LivePropertyChangedCallbacks.Remove(type); } }
internal static void SetLivePropertyChanged(Type type, LivePropertyChangedCallback callback) { if (s_LivePropertyChangedCallbacks.TryGetValue(type, out var del)) { del += callback; } else { s_LivePropertyChangedCallbacks[type] = callback; } }