void FixedUpdate() { if (_bonus == null) { return; } _textField.text = _bonus.GetTTL().ToString(); if (_bonus.GetTTL() <= 0) { _bonus = null; _group.alpha = 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; }
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; }