Example #1
0
    public override void CloseWindow()
    {
        base.CloseWindow();
        if (itemAgent)
        {
            itemAgent.DeSelect();
        }
        itemAgent               = null;
        MItemInfo               = null;
        UI.nameText.text        = null;
        UI.descriptionText.text = string.Empty;
        UI.priceText.text       = string.Empty;
        ZetanUtility.SetActive(UI.durability.gameObject, false);
        CloseSubWindow();
#if UNITY_ANDROID
        ZetanUtility.SetActive(UI.buttonsArea, false);
        ZetanUtility.SetActive(UI.closeButton.gameObject, false);
#endif
    }