public static NetworkResponse Parse(MemoryStream dataStream)
 {
     ResponseRegister response = new ResponseRegister ();
     response.status = DataReader.ReadShort (dataStream);
     if (response.status != 0) {
         Debug.Log ("Server error during registration, status = " + response.status);
     }
     return response;
 }
        public static NetworkResponse Parse(MemoryStream dataStream)
        {
            ResponseRegister response = new ResponseRegister();

            response.status = DataReader.ReadShort(dataStream);
            if (response.status != 0)
            {
                Debug.Log("Server error during registration, status = " + response.status);
            }
            return(response);
        }