internal static void DispatchEventFromMainThread(EventDispatcher ed, kevincastejon.Event e, object target = null)
 {
     if (Instance)
     {
         Instance.eds.Add(ed); Instance.es.Add(e); Instance.ts.Add(target);
     }
 }
예제 #2
0
 /// <summary>
 /// Dispatches an event, call all the callback methods registered with <see cref="AddEventListener{T}(object, Action{T})"/> for this event (depending on its name) and pass this event object as parameter to these methods
 /// </summary>
 /// <param name="e">An Event or inherited object that will be pass as parameter to the callback methods registered to this event (depending on its name)</param>
 public void DispatchEvent(Event e)
 {
     udpm.DispatchTargetedEvent(e, this);
 }
예제 #3
0
 private void _PingTimerHandler(Event e)
 {
     this.SendToServer(UDPManager._UDPMRCP, new { messageType = "ping" });
 }