Ejemplo n.º 1
0
 void Update()
 {
     if (_fadingTimer != null)
     {
         _fadingTimer.Update();
         if (_fadingTimer.hasEnded)
         {
             _fadingTimer = null;
         }
     }
     UpdateColor();
 }
Ejemplo n.º 2
0
    public void Update()
    {
        if (!_timer.hasEnded)
        {
            _timer.Update();
            UpdateColor();
        }

        if (_timer.hasEnded)
        {
            for (int i = 0; i < _text.Length; i++)
            {
                _text[i].enabled = false;
            }
        }
    }