예제 #1
0
 /// <summary>
 /// 处理消息
 /// </summary>
 /// <param name="message"></param>
 public void ProcessEvent(MessageBase message)
 {
     if (!nodeList.ContainKey(message.MessageId))
     {
         Debug.LogError("Key not exist! MessageId: " + message.MessageId + ", ManagerId: " + message.GetManager());
     }
     else
     {
         Node <IMessageProcess> temp = nodeList[message.MessageId];
         while (temp != null)
         {
             temp.data.ProcessEvent(message);
             temp = temp.next;
         }
     }
 }