protected void AllEventDispatch(string eventName, IInputEventBase inputEvent) { if (m_OnAllEventDispatch != null) { try { m_OnAllEventDispatch(eventName, inputEvent); } catch (Exception e) { Debug.LogError("AllEventDispatch name: " + eventName + " key: " + inputEvent.EventKey + " Exception:" + e.ToString()); } } }
public override void Dispatch(IInputEventBase inputEvent) { Dispatch((Event)inputEvent); }
public abstract void Dispatch(IInputEventBase inputEvent);
public static void Dispatch(string eventName, IInputEventBase inputEvent) { IInputDispatcher dispatcher = GetDispatcher("VFramework.Common." + eventName); dispatcher.Dispatch(inputEvent); }