//Destroy food, increase snakeBody count, spawn new collectable and the update score in GameController void EatFood() { spawner.DestroyFood(); snakeBodySize++; CreateSnakeBody(); spawner.SpawnCollectable(); gC.AddToScore(); }
//Destroy food, increase snakeBody count, spawn new collectable and the update score in GameController void EatFood() { spawner.DestroyFood(); snakeBodySize++; CreateSnakeBody(); spawner.SpawnCollectable(); gC.AddToScore(); }