public void ReceiveColor(OSCMessage message) { Color value; if (message.ToColor(out value)) { ReceiverImageColor.color = value; } }
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); } } }
protected override bool ProcessMessage(OSCMessage message, out Color value) => message.ToColor(out value);