public void QuittingGame() { gameController.dataController.globalData.isQuitting = true; if (!gameController.IsAnyBlockOpened()) { buttonManager.DisableRightMenuButtons(); Time.timeScale = 0; } interButtons.Clear(); foreach (Button button in buttonManager.gameButtons) { if (button.IsInteractable()) { interButtons.Enqueue(button); } } foreach (Button button in buttonManager.confirmacceptionButtons) { if (button.IsInteractable()) { interButtons.Enqueue(button); } } foreach (Button button in interButtons) { button.interactable = false; } if (!myCanvas.gameObject.activeInHierarchy) { myCanvas.gameObject.SetActive(true); } buttonManager.DisablePauseButtons(); key = 1; }