PauseScreen









How do I use Pause Screen
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: UIgame.cs Copy
100     public void Pause_btn()
101     {
102         if (SystemScr.paused)
103         {
104             Resume_btn();
105         }
106         else
107         {
108             sounds.PlaySoundsUI(false);
109
110             SystemScr.Pause(true);
111             GameScreen.SetActive(false);
112             PauseScreen.SetActive(true);
113         }
114     }
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     }

PauseScreen 113 lượt xem

Gõ tìm kiếm nhanh...