void Update() { if (slider.value != value) { value = slider.value; //Debug.Log(Name+" "+value); compute.SendMessage(Name + "Receiver", value); } }
void Update() { if (dropdown.value != index) { index = dropdown.value; value = float.Parse(dropdown.options[index].text); //Debug.Log(Name+" "+value); compute.SendMessage(Name + "Receiver", value); } }