コード例 #1
0
    public void Draw()
    {
        _producedCapsCount = Convert.ToInt64(PlayerPrefs.GetString("ProducedCaps"));

        _producedCapsCountText.text = "Добыто крышек за всё время:   " + _producedCapsCount.ToString();
        _currentCapsCountText.text  = "Текущиее количество крышек:   " + _caps.GetCaps().ToString();
        _capsPerSecondsText.text    = "Крышек в секунду:   " + _caps.GetCapsPerSeconds().ToString();
        _tapsCountText.text         = "Кликов по бутылке за всё время:   " + PlayerPrefs.GetInt("TapsCount").ToString();
        _tapProducedText.text       = "Добыто с помощью кликов:   " + PlayerPrefs.GetInt("ProducedCapsPerTap").ToString();
        _goldCapCountText.text      = "Поймано золотых крышек:   " + PlayerPrefs.GetInt("GoldCapsCount").ToString();
        _upsCountText.text          = "Количество улучшений за всё время:   " + PlayerPrefs.GetInt("UpsCount").ToString();
    }
コード例 #2
0
 private void FixedUpdate()
 {
     _capsCountText.text      = String.Format(CultureInfo.InvariantCulture, "{0:#,# 'крышек'}", _caps.GetCaps());
     _capsPerSecondsText.text = _caps.GetCapsPerSeconds().ToString() + " в секунду";
 }