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

                GameOver(this, e);
            }
        }
예제 #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);
        }