Example Code

From Alpha Archive Wiki
Revision as of 02:05, 8 June 2020 by Gunz4Hire (talk | contribs) (Created page with "===If you want to pause the game when you press the guide button:=== if (X360Core.IsSystemUIVisible() == true) { Time.timeScale = 0; }...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If you want to pause the game when you press the guide button:

       if (X360Core.IsSystemUIVisible() == true)
       {
           Time.timeScale = 0;
       }
       else if (X360Core.IsSystemUIVisible() == false)
       {
           Time.timeScale = 1;
       }