Beispiel #1
0
    private void RefreshCoinCost(int totalExp)
    {
        int  totalNum    = Module_Equip.GetCoinCost(equipType, data.GetCurrentTotalExp(), totalExp, m_limitIntentifyInfo);
        bool moneyEnough = Module_Player.instance.roleInfo.coin >= totalNum;

        Util.SetText(m_cost, (int)TextForMatType.EquipIntentyUI, 14, moneyEnough ? totalNum.ToString() : GeneralConfigInfo.GetNoEnoughColorString(totalNum.ToString()));
    }
Beispiel #2
0
    private void RefreshCoinCost(int totalExp)
    {
        int  totalNum    = Module_Equip.GetCoinCost(equipType, data.GetCurrentTotalExp(), totalExp, m_maxLimitIntentifyInfo);
        bool moneyEnough = Module_Player.instance.roleInfo.coin > totalNum;

        Util.SetText(m_intenCostText, moneyEnough ? totalNum.ToString() : GeneralConfigInfo.GetNoEnoughColorString(totalNum.ToString()));
        //m_intenBtn.SetInteractable();
        m_intenBtn.interactable = moneyEnough && !m_maxLevel && m_swallowExp > 0 && sendStreng;
    }