Пример #1
0
 public override void ProcessEvent(MsgBase tmpMsg)
 {
     if (!nodeTree.ContainsKey(tmpMsg.msgId))
     {
         Debug.LogError("msg  不包含该 id:" + tmpMsg.msgId);
         Debug.LogError("msg 模块 为 s:" + tmpMsg.GetManager());
         return;
     }
     else
     {
         EventNode tmpNoe = nodeTree[tmpMsg.msgId];
         while (tmpNoe != null)
         {
             if (tmpNoe.data.isActiveAndEnabled)
             {
                 tmpNoe.data.ProcessEvent(tmpMsg);
             }
             tmpNoe = tmpNoe.next;
         }
     }
 }
Пример #2
0
 public void SendToMsg(MsgBase tmpMsg)
 {
     AnasysisMsg(tmpMsg);
 }
Пример #3
0
 public void SendMsg(MsgBase tmpMsg)
 {
     UIManager.Instance.SendMsg(tmpMsg);
 }
Пример #4
0
 public virtual void ProcessEvent(MsgBase tmpMsg)
 {
 }