Last active
September 16, 2021 04:47
-
-
Save curious-username/64945a2602535457671dd68dcd3c496b to your computer and use it in GitHub Desktop.
pre gameover text, pre null
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SerializeField] | |
private Text _gameOverText; | |
public void GameOver() | |
{ | |
_gameOverText.gameObject.SetActive(true); | |
_scoreText.gameObject.SetActive(false); | |
_gameOverText.text = "Game Over!"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment