Exemplo n.º 1
0
    private IEnumerator CallAdvent()
    {
        Music.PlaySE(Music.Clip.Enter);
        StartMenu.OnAfterEnter();
        yield return(new WaitForSeconds(3));

        switch (buttonNum)
        {
        case 0:
            Advent.StartAdventure(-1, 1);
            break;

        case 1:
            Advent.StartAdventure(0, 1);
            break;

        case 2:
            Advent.StartAdventure(1, 1);
            break;

        case 3:
            Advent.StartAdventure(2, 1);
            break;
        }
    }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     timer += Time.deltaTime;
     if (!firstAnim && timer > firstWait)
     {
         firstAnim = true;
         Unit.StartAnim();
     }
     if (lastAnim && timer > lastWait)
     {
         lastAnim = false;
         //事後処理
         Advent.StartAdventure(KEY, win);
     }
 }
Exemplo n.º 3
0
    private IEnumerator CallAdvent()
    {
        Music.PlaySE(Music.Clip.Enter);
        StartMenu.OnAfterEnter();
        yield return(new WaitForSeconds(3));

        switch (buttonNum)
        {
        case 0:
            Advent.StartAdventure(-1, 1);
            break;

        case 2:
            SceneManager.LoadScene("Main5");
            break;

        case 4:
            Application.Quit();
            break;
        }
    }