void OnChange() { if (device != null && pin != 0) { device.UpdatePin(pin, Value); } }
void OnChange() { if (device != null && pin != 0) { int conversion = (int)(Mathf.Clamp(Value, 0f, 1f) * 255f); device.UpdatePin(pin, conversion); } }
void OnChange() { if (device != null && pin != 0) { device.UpdatePin(pin, Value); } }
void OnChange() { if (device != null && pin != 0) { int conversion = (int)(Mathf.Clamp(Value, 0f, 1f) * 255f); device.UpdatePin(pin, conversion); } }