private void Update() { if (Input.GetKeyDown(KeyCode.P)) { collector.Execute(); } }
private void Update() { if (Input.GetKeyDown(KeyCode.Space)) { if (collector.CollectorEnabled) { if (collector.HeldPowerups.Count > 0) { PowerupColorDisplay.Clear(); } collector.Execute(); } else { singleCollector.Execute(); } } if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } }