Beispiel #1
0
    private void SetMountainPrice()
    {
        _lb_title.text     = "<광산>";
        _level             = _miner_mgr.GetMountainLevel();
        _lb_pop_level.text = "+" + _level;

        if (!_miner_mgr.IsMaxMountain())
        {
            _lb_pop_content.text    = "광산 레벨을 올려\n 획득골드를 5% 높입니다.";
            _need_price             = _miner_mgr.GetMountainPrice(_level);
            _lb_pop_price.text      = _need_price.ToString();
            _cur_gold               = _miner_mgr.GetTotalGold();
            _lack_gold              = _cur_gold - _need_price;
            _lb_pop_price_head.text = "가격: ";

            if (_lack_gold >= 0)
            {
                _lb_pop_price_lack.text      = "";
                _lb_pop_price_lack_head.text = "";
            }
            else
            {
                _lb_pop_price_lack.text      = _lack_gold.ToString();
                _lb_pop_price_lack_head.text = "부족 : ";
            }
        }
        else
        {
            _lb_pop_content.text         = "최대치";
            _lb_pop_price.text           = "";
            _lb_pop_price_head.text      = "";
            _lb_pop_price_lack.text      = "";
            _lb_pop_price_lack_head.text = "";
        }
    }