void Update()
 {
     if (Input.anyKeyDown)
     {
         if (Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1) || Input.GetMouseButtonDown(2))
         {
             return;
         }
         else if (startButton.gameObject.activeSelf && !cameraTransition.IsEasing() && startButton.interactable)
         {
             startButton.onClick.Invoke();
         }
     }
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         if (mainExitButton.isActiveAndEnabled && !cameraTransition.IsEasing() && mainExitButton.interactable)
         {
             mainExitButton.onClick.Invoke();
         }
         else if (optionsPanelAnimator.GetCurrentAnimatorStateInfo(0).IsName("OpenOptionsPanels") && optionsExitButton.interactable)
         {
             optionsExitButton.onClick.Invoke();
         }
         else if (videoPanelAnimator.GetCurrentAnimatorStateInfo(0).IsName("OpenVideoPanels") && videoExitButton.interactable)
         {
             videoExitButton.onClick.Invoke();
         }
         else if (soundPanelAnimator.GetCurrentAnimatorStateInfo(0).IsName("OpenSoundOptions") && soundExitButton.interactable)
         {
             soundExitButton.onClick.Invoke();
         }
         else if (controlsPanelAnimator.GetCurrentAnimatorStateInfo(0).IsName("openControlsOption") && controlsExitButton.interactable)
         {
             controlsExitButton.onClick.Invoke();
         }
         else if (languagePanelAnimator.GetCurrentAnimatorStateInfo(0).IsName("OpenLanguageOptions") && languageExitButton.interactable)
         {
             languageExitButton.onClick.Invoke();
         }
     }
 }