void Update() { // image flashes // Start Flash Loop if (Input.GetKeyDown(KeyCode.Q)) { _flashImage.StartFlashLoop(); } // Stop Flash Loop if (Input.GetKeyDown(KeyCode.W)) { _flashImage.StopFlashLoop(); } // Start Flash Loop with custom parameters if (Input.GetKeyDown(KeyCode.E)) { _flashImage.StartFlashLoop(1, 0, .5f); } // Timers // Countdown Text if (Input.GetKeyDown(KeyCode.A)) { if (_countRoutine != null) { StopCoroutine(_countRoutine); } _countRoutine = StartCoroutine(UITimer.CountDownTime(_countText, .1f, 5)); } // Count Elapsed Text if (Input.GetKeyDown(KeyCode.S)) { if (_countRoutine != null) { StopCoroutine(_countRoutine); } _countRoutine = StartCoroutine(UITimer.CountElapsedTime(_countText, .1f, 5)); } // Countdown Bar if (Input.GetKeyDown(KeyCode.D)) { if (_sliderRoutine != null) { StopCoroutine(_sliderRoutine); } _sliderRoutine = StartCoroutine(UITimer.CountDownSlider(_timeSlider, 3)); } // Duration Bar if (Input.GetKeyDown(KeyCode.F)) { if (_sliderRoutine != null) { StopCoroutine(_sliderRoutine); } _sliderRoutine = StartCoroutine(UITimer.CountUpSlider(_timeSlider, 3)); } // panels if (Input.GetKeyDown(KeyCode.Z)) { _popupPanel.SetActive(true); } if (Input.GetKeyDown(KeyCode.X)) { _popupPanel.SetActive(false); } }