Exemplo n.º 1
0
    void onRoomList(NetWork.Msg msg)
    {
        Room.RoomListRsp rsp = (Room.RoomListRsp)msg.body;

        Room.EnterReq req = new Room.EnterReq();
        req.room_id = 1;
        network.WriteMsg("Room.EnterReq", req);
        Debug.Log(rsp);
    }
Exemplo n.º 2
0
    void onRoomList(NetWork.Msg msg)
    {
        Room.RoomListRsp rsp = (Room.RoomListRsp)msg.body;
        Debug.Log("Room.RoomListRsp..." + rsp);
        Debug.Log("Get Room List....");
        foreach (Room.RoomInfo room in rsp.list)
        {
            Debug.Log("Room:" + room.ToString());
        }
        Debug.Log("Over....");

        Room.EnterReq req = new Room.EnterReq();
        req.room_id = 1;
        network.WriteMsg("Room.EnterReq", req);
    }