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);
                }
            }
        }
Exemple #3
0
        public void ReceiveDouble(OSCMessage message)
        {
            double value;

            if (message.ToDouble(out value))
            {
                ReceiverTextDouble.text = value.ToString();

                var floatValue = (float)value;
                ReceiverSliderDouble.value = floatValue;
            }
        }
Exemple #4
0
        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);