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