protected override bool ProcessMessage(OSCMessage message, out double value) { value = 0; if (message.ToDouble(out value)) { return(true); } return(false); }
protected override void Invoke(OSCMessage message) { double value; if (message.ToDouble(out value)) { if (onReceive != null) { onReceive.Invoke(value); } } }
public void ReceiveDouble(OSCMessage message) { double value; if (message.ToDouble(out value)) { ReceiverTextDouble.text = value.ToString(); var floatValue = (float)value; ReceiverSliderDouble.value = floatValue; } }
private void ReceivedMessage(OSCMessage message) { double angle; double distance; message.ToDouble(out angle); message.ToDoubleTwo(out distance); float anglef = (float)angle; float distancef = (float)distance; print(distancef); this.gameObject.transform.rotation = Quaternion.Euler(0, 0, anglef); this.gameObject.transform.position = new Vector3(-48.97f, .36f, distancef - 65); #endregion }
protected override bool ProcessMessage(OSCMessage message, out double value) => message.ToDouble(out value);