Пример #1
0
 public void CheckCollisions()
 {
     if (worldMap.CheckFruitCollision(snake.GetHead()))
     {
         DestroyFruit();
         CreateNewFruit();
     }
     if (worldMap.CheckWallsCollision(snake.GetHead())) //agregar colision con la serpiente
     {
         endOfGame = true;
         panelPerdiste.SetActive(true);
     }
 }