Exemple #1
0
        public void ReceiveColor(OSCMessage message)
        {
            Color value;

            if (message.ToColor(out value))
            {
                ReceiverImageColor.color = value;
            }
        }
Exemple #2
0
        protected override bool ProcessMessage(OSCMessage message, out Color value)
        {
            value = Color.white;

            if (message.ToColor(out value))
            {
                return(true);
            }

            return(false);
        }
        protected override void Invoke(OSCMessage message)
        {
            Color value;

            if (message.ToColor(out value))
            {
                if (onReceive != null)
                {
                    onReceive.Invoke(value);
                }
            }
        }
Exemple #4
0
 protected override bool ProcessMessage(OSCMessage message, out Color value) => message.ToColor(out value);