Exemplo n.º 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;
         }
     }
 }
Exemplo n.º 2
0
 public void SendToMsg(MsgBase tmpMsg)
 {
     AnasysisMsg(tmpMsg);
 }
Exemplo n.º 3
0
 public void SendMsg(MsgBase tmpMsg)
 {
     UIManager.Instance.SendMsg(tmpMsg);
 }
Exemplo n.º 4
0
 public virtual void ProcessEvent(MsgBase tmpMsg)
 {
 }