private void Update() { if (Input.GetKeyDown(KeyCode.Q)) { remoteControl.SetCommand(new LightOnCommand(targetLight)); remoteControl.CallCommand(); } if (Input.GetKeyDown(KeyCode.W)) { remoteControl.SetCommand(new LightOffCommand(targetLight)); remoteControl.CallCommand(); } if (Input.GetKeyDown(KeyCode.E)) { remoteControl.SetCommand(new LightChangeColourCommand(targetLight, color)); remoteControl.CallCommand(); color = Random.ColorHSV(); } }