//=========================================================================================

    public void ChangeDisplayStatus()
    {
        canvas.gameObject.SetActive(true);
        // upper.GetComponent<UpperBar>();
        statPanel.UpdateStatValues();
        equipmentPanel.updateList();
        inventory.RefreshUI2();
        skillsPanel.RefreshUI();
        upper.OnXPChanged(XpNeededToLvl, 0);
        charData.updateText();
        canvas.targetDisplay = 0;
        canvas.sortingOrder  = 1;
        //  cg.alpha = 1;
        // cgInventory.alpha = 1;
    }