示例#1
0
 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;
     }
 }
示例#2
0
        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;
            }
        }