Ejemplo n.º 1
0
 public void PacmanDie()
 {
     if (currentLives <= 0)
     {
         // Call GameOver Screen
         gameUI.EnableGameOverUI();
         Destroy(gameObject);
     }
     else
     {
         currentLives--;
         liveUI.SubtractALife();
         transform.position = pacmanMove.spawnPosition;
         pacmanMove.SetDestinationToPosition();
     }
 }