Example #1
0
 public void ReceiveMSG(MSGBase msg)
 {
     foreach (var item in behaviors)
     {
         item.ReceiveMSG(msg);
     }
 }
Example #2
0
    public static void SendMSG(ManagerKind kind, MSGBase msg)
    {
        switch (kind)
        {
        case ManagerKind.BTNManager:
            BTNManager.instance.ReceiveMSG(msg);
            break;

        case ManagerKind.UIManager:
            UIManager.instance.ReceiveMSG(msg);
            break;

        default:
            Debug.LogError("no manager existed that you have appointed");
            break;
        }
    }
Example #3
0
    public void Transpond(MSGBase msg)
    {
        switch (msg.kind)
        {
        case ManagerKind.BTNManager:
            BTNManager.instance.ReceiveMSG(msg);
            break;

        case ManagerKind.UIManager:
            UIManager.instance.ReceiveMSG(msg);
            break;

        default:
            Debug.LogError("no manager you have appointed");
            break;
        }
    }
Example #4
0
 public void SendMSG(MSGBase msg)
 {
     MSGObjectHelper.SendMSG(kind, msg);
 }
Example #5
0
 public virtual void ReceiveMSG(MSGBase msg)
 {
     Debug.Log("没有重写ReceiveMSG");
 }
Example #6
0
 //接收信息
 public virtual void ReceiveMSG(MSGBase msg)
 {
 }