private void Start()
    {
        var timeSleep = GetSleepTime();

        if (timeSleep > _minTimeAway)
        {
            TimeSpan sleepInterval = TimeSpan.FromSeconds(timeSleep);
            string   timeSleepText = (sleepInterval.Minutes + " min " + sleepInterval.Seconds + " sec").ToUpper();
            _informationPanel.Show(timeSleepText, _scoreFormConverter.GetConvertedScore(_chooser.GetScorePerSecondSum() * timeSleep));
        }
    }
Ejemplo n.º 2
0
 private void Show()
 {
     AddScore(Time.deltaTime);
     //_scorePerSecondViewer.text = _scoreFormConverter.GetConvertedScorrePerSecond(_savedScore.ScorePerSecond);
     _scoreViewer.text = _scoreFormConverter.GetConvertedScore(_savedScore.Score);
     GameDataStorage.SaveScore(_levelName, _savedScore);
 }
Ejemplo n.º 3
0
 private void ChangeScorre(float score)
 {
     Score += score;
     _scoreDrawer.Draw(_scoreFormConvert.GetConvertedScore(Score));
 }
Ejemplo n.º 4
0
    public virtual void ChangePrice()
    {
        var price = _economy.GetPrice(_product.ActionObject.Price, _product.ActionObject.ObjectType);

        _priceViewer.text = _scorreForm.GetConvertedScore(price).ToString();
    }
Ejemplo n.º 5
0
 public void ShowCoast(float coast)
 {
     gameObject.SetActive(true);
     _coast.text = _scorreFormConverter.GetConvertedScore(coast);
 }