public static void DispatchEvent(CustomEvent _event) { CustomEventWrapper eWrapper = null; if (events.TryGetValue(_event.EventType, out eWrapper)) { eWrapper.Invoke(_event); } }
public void OnChangeMuteSettingsHandler(CustomEvent _event) { isMute = (bool)_event.EventData; foreach (var item in sources) { if (item == null) { continue; } item.mute = isMute; } }
public void Invoke(CustomEvent _event) { OnHandler?.Invoke(_event); }