Example #1
0
 private void ballTrapCollision(Trap trap, Ball ball)
 {
     if (trap != null && trap.Collided(ball))
     {
         trap.reflect(ball);
         ball.playBounceSound();
         trapSet.activate();
         blockSet.activateUnbreakableBlocks();
         theSwitch.activate();
     }
 }