public void ProcessRobotProc(pb.GS2CRobotProc msg) { Debug.Log("ProcessRobotProc, procRobot=" + msg.procPlayer + ", beProcPlayer=" + msg.beProcPlayer + ", type=" + msg.procType.ToString()); //更新牌信息 updatePaiByCardList(msg.cardList); //处理操作动画 EventDispatcher.TriggerEvent <int, int, pb.ProcType>(EventDefine.RobotProc, msg.procPlayer, msg.beProcPlayer, msg.procType); }
public void RevMsgGS2CRobotProc(int pid, byte[] msgBuf, int msgSize) { Debug.Log("==>> RevMsgGS2CRobotProc"); Stream stream = new MemoryStream(msgBuf); pb.GS2CRobotProc msg = ProtoBuf.Serializer.Deserialize <pb.GS2CRobotProc>(stream); BattleManager.Instance.ProcessRobotProc(msg); }