Exemplo n.º 1
0
 public void CollideWithPlayer(PlayerScore otherPlayer)
 {
     if(chasing && !otherPlayer.chasing)
     {
         //we caught them! hooray!
         CatchPlayer();
         otherPlayer.GetCaught();
     }
     else if(!chasing && otherPlayer.chasing)
     {
         GetCaught();
         otherPlayer.CatchPlayer();
     }
 }