Exemple #1
0
    private void TestRecv(PacketStream packet)
    {
        Debug.Log("TestRecv thread: " + System.Threading.Thread.CurrentThread.GetHashCode());

        int    msgno;
        object obj = ClientCommon.msgunpack(packet, out msgno);

        //Type t = MsgType.Instance ().getMsgType (msgno);

        //print(msgno);
        //print (obj);

        //Messenger.Broadcast<login_message.CMsgAccountLoginResponse>(msgno.ToString(), (login_message.CMsgAccountLoginResponse)obj);
        Messenger.Broadcast(msgno.ToString(), obj);
        //print (s);
    }