コード例 #1
0
        racerOne.CollidesWith(racerTwo);      // TODO move IsCollidable into CollidesWith

        private static void OnRemoved(Racer racer)
        {
            OnRacerExplodes(racer);

            racer.Destroy();
        }
コード例 #2
0
 private static void OnRacerExplodes(Racer racer)
 {
     // TODO
 }
コード例 #3
0
 private static bool Collides(Racer racerOne, Racer racerTwo) =>
 racerOne.IsCollidable() &&
 racerTwo.IsCollidable() &&
 racerOne.CollidesWith(racerTwo);      // TODO move IsCollidable into CollidesWith