public static void DispatchEvent(CustomEvent _event)
        {
            CustomEventWrapper eWrapper = null;

            if (events.TryGetValue(_event.EventType, out eWrapper))
            {
                eWrapper.Invoke(_event);
            }
        }
예제 #2
0
        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);
 }