OptionsScreen
How do I use Options Screen
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
123 | OptionsScreen.SetActive(false); | 1 |
130 | OptionsScreen.SetActive(true); | 2 |
143 | OptionsScreen.SetActive(false); | 3 |
File name: UIgame.cs
Copy
116 public void Resume_btn()
117 {
118 sounds.PlaySoundsUI(false);
119
120 SystemScr.Pause(false);
121 GameScreen.SetActive(true);
122 PauseScreen.SetActive(false);
123 OptionsScreen.SetActive(false);
124 }
File name: UIgame.cs
Copy
126 public void Options_btn()
127 {
128 sounds.PlaySoundsUI(true);
129
130 OptionsScreen.SetActive(true);
131 }
File name: UIgame.cs
Copy
139 public void ExitFromOptions_btn()
140 {
141 sounds.PlaySoundsUI(true);
142
143 OptionsScreen.SetActive(false);
144 }
OptionsScreen 117 lượt xem
Gõ tìm kiếm nhanh...