void Update() { if (Input.GetMouseButtonUp(0)) { if (hover) { if (LEDModel != null) { LEDModel.localScale = Vector3.one * 1.5f; } } else { if (LEDModel != null) { LEDModel.localScale = Vector3.one * 1f; } } if (press) { arduino.ArduinoLED(); } press = false; } transform.parent.position = parentTransform.position; transform.parent.rotation = parentTransform.rotation; }