private void Ball_StoppedMoving(object sender, BallEventArgs e) { if (e.BallOnRightSide) { ScorePoint("PlayerOne", ++playerOne); NextRound?.Invoke("PlayerOne"); } else { ScorePoint("PlayerTwo", ++playerTwo); NextRound?.Invoke("PlayerTwo"); } }
private void OnNextRound(NextRound nextRound) { NextRound?.Invoke(nextRound); }