Exemple #1
0
 void FixedUpdate()
 {
     if (_bonus == null)
     {
         return;
     }
     _textField.text = _bonus.GetTTL().ToString();
     if (_bonus.GetTTL() <= 0)
     {
         _bonus       = null;
         _group.alpha = 0;
     }
 }
Exemple #2
0
 public void Activate(IBonus bonus)
 {
     _bonus = bonus;
     GameController.BonusTypes bonusType = bonus.GetBonusType();
     _currentBonusImage.sprite = _bonusSprites[(int) bonusType];
     _textField.text = _bonus.GetTTL().ToString();
     _group.alpha = 1;
 }
Exemple #3
0
 public void Activate(IBonus bonus)
 {
     _bonus = bonus;
     GameController.BonusTypes bonusType = bonus.GetBonusType();
     _currentBonusImage.sprite = _bonusSprites[(int)bonusType];
     _textField.text           = _bonus.GetTTL().ToString();
     _group.alpha = 1;
 }