Пример #1
0
 public void CheckCollisions()
 {
     if (PlayerOnFood())
     {
         Score += 100;
         SpawnFood();
         ThePlayer.Grow();
     }
     else if (PlayerOnPlayer())
     {
         EndGame("You collided with yourself!");
     }
 }