Пример #1
0
    public void OnEnchant()
    {
        if (m_Equip.AvailableEnchant() == false)
        {
            Tooltip.Instance.ShowMessageKey("NotEnoughStuff");
            return;
        }

        if (Network.PlayerInfo.GetGoodsValue(pe_GoodsType.token_gold) < m_Equip.EnchantCost)
        {
            Popup.Instance.Show(ePopupMode.MoveStore, pe_GoodsType.token_gold);
            return;
        }

        OnEquipEnchant(m_Equip);
        parent.Close();
    }