Exemple #1
0
 //Pre: spike is not null
 //Post: N/A
 //Description: Handle's the player's response to colliding with a spike
 public override void CollisionWith(Spikes spike)
 {
     isAlive = false;
 }
Exemple #2
0
 //Pre: spike is not null
 //Post: N/A
 //Description: Crate is blocked from moving into spike
 public override void CollisionWith(Spikes spike)
 {
     BlockedCollision(spike);
 }