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