Exemplo n.º 1
0
        public void Update(LevelImp level, float elapsed)
        {
            if (!IsAlive)
            {
                return;
            }

            if (_punishedType != PunishedType.None)
            {
                _punishedTime += elapsed;
                if (_punishedTime >= PunishedDuration)
                {
                    _punishedType = PunishedType.None;
                }
            }

            FigureController?.Update(elapsed);

            Move(level, elapsed);
            HandleItemCollection(level);
            HandleHitByFire(level);
            HandlePlaceBomb(level);

            FigureController?.Reset();
        }
Exemplo n.º 2
0
 public void ResetSong()
 {
     currentFigure.Reset();
 }