Example Code

From Alpha Archive Wiki
Revision as of 02:06, 8 June 2020 by Gunz4Hire (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Pause Game With Guide Button

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;
       }


Example Code 2