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); } }