public void CheckCollision() { if (worm.CheckIntersection(food.body)) { worm.Eat(food.body); food.Generate(); } if (worm.CheckIntersection(wall.body)) { //GameOver = true; } }
void CheckColision() { if (worm.CheckIntersection(food.body) == true) { worm.Eat(food.body); food.Generate(); } }
public void CheckCollision() { if (worm.CheckIntersection(food.body[0])) { worm.Eat(food.body[0]); food.Generate(); } }