public void CloseRaidResultWindow()
 {
     Time.timeScale = 1;
     raidResultCanvas.gameObject.SetActive(false);
     buttonManager.EnableRightMenuButtons();
     gameController.isBlockOpened[3] = false;
 }
 void Start()
 {
     foreach (CanvasGroup window in openingWindows)
     {
         window.gameObject.SetActive(false);
     }
     endGameWindow.gameObject.SetActive(false);
     buttonsManager.EnableRightMenuButtons();
     spawned = new bool[8] {
         false, false, false, false, false, false, false, false
     };                                                                                  // 0 и 1 - спаун персонажей
     isBlockOpened = new bool[4] {
         false, false, false, false
     };
     interButtons = new Queue <Button>();
     raidNumber   = -1;
 }
    void EndDialogue()
    {
        Debug.Log("The end of the conversation.");
        buttonManager.EnableRightMenuButtons();

        startButton.gameObject.SetActive(true);
        kickButton.gameObject.SetActive(true);
        closeButton.GetComponent <Button>().interactable = true;
        answerButton.gameObject.SetActive(false);

        citizen.SetFactUnlocked(numberDialogue);
        numberDialogue = -1;

        SetDialogueToNull();
    }
    public void NotConfirm()
    {
        foreach (Button button in interButtons)
        {
            button.interactable = true;
        }
        interButtons.Clear();

        if (!gameController.IsAnyBlockOpened() && !pauseCanvas.gameObject.activeInHierarchy)
        {
            buttonManager.EnableRightMenuButtons();
            Time.timeScale = 1;
        }

        buttonManager.EnablePauseButtons();
        myCanvas.gameObject.SetActive(false);
        key = 0;
        gameController.dataController.globalData.isQuitting = false;
    }