private void OnGameOver(object sender, TetrisGameOverEventArgs e)
        {
            if (GameOver != null)
            {
                e.FigureSet = FigureSetChanged ? TetrisFiguresEnum.Random : FigureSet;

                GameOver(this, e);
            }
        }
Exemple #2
0
        private void OnGameOver()
        {
            if (GameOver != null)
            {
                TetrisGameOverEventArgs e = new TetrisGameOverEventArgs();

                e.Width  = Width;
                e.Height = Height;
                e.Level  = Level;
                e.Score  = Score;

                GameOver(this, e);
            }

            //GameOver?.Invoke(this, e);
        }