Example Code

From Alpha Archive Wiki
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