/// <summary>
    /// 换装
    /// </summary>
    /// <param name="data"></param>
    public virtual void Replace(EquipmentItem data)
    {
        item = data;
        //Debug.Log("Refresh this  item is null ? " + item == null);
        if (item != null)
        {

            if (icon)
            {
                icon.enabled = true;
                icon.spriteName = item.icon;
            }

            if (frame != null)
            {
                frame.spriteName = data.GetSprNameByQuality();
                frame.enabled = true;
            }

            if (labName != null) labName.text = item.name;
            if (labLevel != null) labLevel.text = item.equiplev + "级";

            //品质图标
            if (sprQuality) sprQuality.spriteName = data.GetQualitySprName();

        }
        else
        {
            if (icon) icon.enabled = false;
            if (frame != null)
            {
                frame.enabled = false;
            }
        }
    }