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());
         }
     }
 }
Exemple #2
0
 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);
        }