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