private void Update()
 {
     if (Input.GetKeyDown(pauseKey))
     {
         isPaused = !isPaused;
         if (isPaused == true)
         {
             CursorManager.ShowUnlockCursor();
             inventory.isShown = false;
             inventory.inventoryCanvas.SetActive(false);
         }
         else if (isPaused == false)
         {
             CursorManager.HideLockCursor();
         }
     }
     if (isPaused == true)
     {
         Time.timeScale = 0.0f;
         pauseCanvas.SetActive(true);
         blur.enabled = true;
     }
     else if (isPaused == false)
     {
         Time.timeScale = 1.0f;
         pauseCanvas.SetActive(false);
         blur.enabled = false;
     }
 }