Exemplo n.º 1
0
    // DH change
    public void MCProcessMatchInit(NetworkResponse response)
    {
        ResponseMCMatchInit args = response as ResponseMCMatchInit;

        if (args.status == 0)
        {
            Debug.Log("MC MatchID set to: " + args.matchID + " Player id is: " + GameState.player.GetID());
            Game.SwitchScene("MultiConverge");
        }
    }
    public static NetworkResponse Parse(MemoryStream dataStream)
    {
        ResponseMCMatchInit response = new ResponseMCMatchInit();

        response.status = DataReader.ReadShort(dataStream);

        if (response.status == 0)
        {
            response.matchID = DataReader.ReadInt(dataStream);
        }
        return(response);
    }