private void OnDataReceived(string playerId, byte[] payload) { if (HeadsetCalibrationDataRequest.TryDeserialize(payload, out request)) { Debug.Log("Headset calibration data requested"); updateData = true; } else { Debug.LogWarning("Received network payload that wasn't a headset calibration data request"); request = null; } }
private void CalibrationDataRequested(SocketEndpoint endpoint, string command, BinaryReader reader, int remainingDataSize) { editorAddress = endpoint.Address; EnableChildren(); if (HeadsetCalibrationDataRequest.TryDeserialize(reader, out request)) { Debug.Log("Headset calibration data requested"); updateData = true; } else { Debug.LogWarning("Received network payload that wasn't a headset calibration data request"); request = null; } }