void Update() { if (Input.GetKeyDown(KeyCode.Tab)) { colorsPuzzle.clean(); } if (Input.GetKeyDown(KeyCode.E)) { _colorSelected = true; } }
void Update() { if (colorsPuzzle.IsActive) { controlActive = true; if (Input.GetKeyDown(KeyCode.Tab)) { colorsPuzzle.clean(); } if (Input.GetKeyDown(KeyCode.E)) { _colorSelected = true; } } else { controlActive = false; } }