예제 #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();
     }
 }
예제 #2
0
    public void Update()
    {
        switch (state)
        {
        case 0: UpdateOpeningText(); break;

        case 1: UpdateAnimation(); break;

        case 2: FlickerEyes(); break;

        case 3: UpdateLeavingAnimation(); break;
        }
        if (PD.GetP1Controller() != null)
        {
            PD.GoToMainMenu();
        }
    }