Skip to content

Instantly share code, notes, and snippets.

@curious-username
Last active September 16, 2021 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curious-username/64945a2602535457671dd68dcd3c496b to your computer and use it in GitHub Desktop.
Save curious-username/64945a2602535457671dd68dcd3c496b to your computer and use it in GitHub Desktop.
pre gameover text, pre null
[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