/// <summary>
    ///
    /// </summary>
    /// <param name="message"></param>
    private void MessageReceived(OSCMessage message)
    {
        if (message.Address.Equals("/3DMetaballs/fogScater"))
        {
            OSCValue[] vals = message.GetValues(message.GetTypes());

            fogScater = vals[0].FloatValue;
        }
    }
Exemple #2
0
        protected override void Invoke(OSCMessage message)
        {
            var values = message.GetValues(OSCValueType.Null);

            if (values.Length > 0)
            {
                if (onReceive != null)
                {
                    onReceive.Invoke();
                }
            }
        }
        protected void MessageReceived(OSCMessage message)
        {
            double[]   contents    = new double[4];
            OSCValue[] preContents = message.GetValues(OSCValueType.Double);

            for (int ii = 0; ii < 4; ii++)
            {
                contents[ii] = preContents[ii].DoubleValue;
            }
            // Debug.LogFormat("contents 0 are: {0}", contents[0]);
            MuseTracker(contents);
        }
        protected override void Invoke(OSCMessage message)
        {
            var values = message.GetValues(OSCValueType.TimeTag);

            if (values.Length > 0)
            {
                var value = values[0];

                if (onReceive != null)
                {
                    onReceive.Invoke(value.TimeTagValue);
                }
            }
        }