Loading...
Show/hide UI elements
Code used in this lesson:
C#1public GameObject pauseUI;
2
3public OnEnterPausePress() {
4 pauseUI.setActive(true);
5}
6
7public OnGameResumePress() {
8 pauseUI.setActive(false);
9}
10
11public OnGameExitPress() {
12 Application.Quit()
13}