Ejemplo n.º 1
0
        public override void Execute()
        {
            if (Figure == null)
            {
                return;
            }

            Figure.OnDrop();

            if (Field.SetFigure(Figure))
            {
                AudioManager.PlayOnce("Drop");
                FigureGenerator.UseFigure(Figure);
                Figure.Despawn();
            }
            else
            {
                Figure.ReturnToStartPosition();
            }
        }