Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void AddToLives(int amount)
- {
- if ( amount == -1 )
- {
- ResetCharactersPositions();
- pacman.IsPaused = true;
- }
- _lives += amount;
- if ( _lives == 0 )
- {
- GameOverText = "You have Died!";
- }
- }
- public string GameOverText
- {
- get { return _gameOverText; }
- private set
- {
- _gameOverText = value;
- _gameOver = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement