void Update() { if (LevelManager.Instance.HasFailed) { return; } if (transmitCounter > 0f) { transmitCounter -= Time.deltaTime; } else if (Transmit.Any(key => Input.GetKeyDown(key))) { Transmitter.Transmit(); transmitCounter = Cooldown; } if (Input.GetKeyDown(Next)) { Transmitter.Next(); } else if (Input.GetKeyDown(Previous)) { Transmitter.Previous(); } }