示例#1
0
 private void OnMessage(GameEventMessage message)
 {
     if (ListenForAllGameEvents || GameEvent.Equals(message.EventName))
     {
         InvokeEvent(message);
     }
 }
示例#2
0
 private void InvokeEvent(GameEventMessage message)
 {
     if (!message.HasGameEvent)
     {
         return;
     }
     if (Event == null)
     {
         return;
     }
     Event.Invoke(message.EventName);
 }
示例#3
0
 private static void SendEvent(GameEventMessage gameEventMessage)
 {
     Send(gameEventMessage.EventName, gameEventMessage);
 }
示例#4
0
 private void OnMessage(GameEventMessage message)
 {
     InvokeEvent(message);
 }