public void ProcessPlayerProc(pb.GS2CPlayerEnsureProc msg) { Debug.Log("ProcessPlayerProc"); if (msg.procPlayer == Player.Instance.PlayerInfo.OID) { EventDispatcher.TriggerEvent <int, pb.ProcType, int>(EventDefine.SelfEnsureProc, msg.beProcPlayer, msg.procType, msg.procCardId); } }
public void RevMsgGS2CPlayerEnsureProc(int pid, byte[] msgBuf, int msgSize) { Debug.Log("==>> RevMsgGS2CPlayerEnsureProc"); Stream stream = new MemoryStream(msgBuf); pb.GS2CPlayerEnsureProc msg = ProtoBuf.Serializer.Deserialize <pb.GS2CPlayerEnsureProc>(stream); BattleManager.Instance.ProcessPlayerProc(msg); }