Ejemplo n.º 1
0
 private void UpdateTitle()
 {
     if (--timeUntilDemo < 0)
     {
         isTransitioning = true; PD.MoveToDemo();
     }
     PD.usingGamepad1 = false;
     if (expectingGamepad)
     {
         for (int i = 0; i < 4; i++)
         {
             if (Input.GetKeyDown((KeyCode)(350 + 20 * i)))
             {
                 PD.UpdateGamepad(0, i);
                 PD.usingGamepad1 = true;
                 if (expectingP2Gamepad)
                 {
                     PD.usingGamepad2 = true;
                 }
                 break;
             }
         }
     }
     PD.controller = PD.GetP1Controller();
     if (PD.controller != null)
     {
         PD.sounds.SetSoundAndPlay(SoundPaths.S_Menu_Confirm); CleanupTitle();
     }
 }