public void createDialogue(PanelType panelType, Party party)
    {
        if (MapManagement.mapManagement.finishedLoading == false)
        {
            return;
        }
        statusPanel.SetActive(false);
        Time.timeScale = 0.0f;
        WorldInteraction.worldInteraction.stopEveryone(true);
        if (party == null)
        {
            Debug.Log("p is null");
        }
        curInteractedParty = party;
        if (panelType == PanelType.NPC)
        {
            npcNameText.text = npcName;

            NPCInteractionPanel.SetActive(true);
            updateNPCOption();
        }
        else if (panelType == PanelType.SNPC)
        {
            snpcNameText.text = npcName;
            SNPCInteractionPanel.SetActive(true);
        }
        else if (panelType == PanelType.city)
        {
            swapCityBackground(MapSceneUIImageDataBase.dataBase.cityDefaultImg);
            cityNameText.text = party.belongedCity.lName;
            if (party.belongedCity.cityIcon != null)
            {
                cityIcon.texture = party.belongedCity.cityIcon;
            }
            cityInteractionPanel.SetActive(true);
            cityFirstLayerPanel1.GetComponent <Animator>().SetBool("show", true);
            cityFirstLayerPanel2.GetComponent <Animator>().SetBool("show", true);
            cityNamePanel.GetComponent <Animator>().SetBool("show", true);
        }
        else if (panelType == PanelType.town)
        {
            townNameText.text = party.belongedTown.lName;
            townInteractionPanel.SetActive(true);
            townFirstLayerPanel1.GetComponent <Animator>().SetBool("show", true);
            townFirstLayerPanel2.GetComponent <Animator>().SetBool("show", true);
            townNamePanel.GetComponent <Animator>().SetBool("show", true);
        }
    }
 public void closeDialogue(PanelType panelType)
 {
     if (panelType == PanelType.NPC)
     {
         NPCInteractionPanel.SetActive(false);
     }
     else if (panelType == PanelType.SNPC)
     {
         SNPCInteractionPanel.SetActive(false);
     }
     else if (panelType == PanelType.city)
     {
         cityInteractionPanel.SetActive(false);
     }
     else if (panelType == PanelType.town)
     {
         townInteractionPanel.SetActive(false);
     }
     WorldInteraction.chasing = false;
     statusPanel.SetActive(true);
     Time.timeScale = 1.0f;
 }
    void Start()
    {
        NPCPanelInitialization();
        SNPCPanelInitialization();
        cityPanelInitialization();
        townPanelInitialization();

        //inactivate all panels
        NPCInteractionPanel.SetActive(false);
        SNPCInteractionPanel.SetActive(false);
        cityInteractionPanel.SetActive(false);
        townInteractionPanel.SetActive(false);
        makeSurePanel.SetActive(false);

        if (Instance != null && Instance != this)
        {
            Destroy(gameObject);
        }
        else
        {
            Instance = this;
        }
    }