Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
    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);
    }