public void ProcessMatchInit(NetworkResponse response) { ResponseMatchInit args = response as ResponseMatchInit; if (args.status == 0) { GameState.matchID = args.matchID; Debug.Log("MatchID set to: " + args.matchID); } }
public static NetworkResponse Parse(MemoryStream dataStream) { ResponseMatchInit response = new ResponseMatchInit(); response.status = DataReader.ReadShort(dataStream); if (response.status == 0) { response.matchID = DataReader.ReadInt(dataStream); } return(response); }