Exemplo n.º 1
0
 void Start()
 {
     buttonIndex   = buttons.Length;
     indexLocation = firstIndex;
     scrollWait    = timeBuffer;
     bBackButton.OnClick();
 }
Exemplo n.º 2
0
 void Update()
 {
     // If A, start or return are pressed
     if (Input.GetKeyDown("joystick button 0") == true || Input.GetKeyDown("joystick button 7") == true || Input.GetKeyDown("return") == true)
     {
         QuitGame();
     }
     // If B or escape has been pressed
     else if (Input.GetKeyDown("joystick button 1") == true || Input.GetKeyDown("escape") == true)
     {
         noButton.OnClick();
     }
 }