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
    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;
        }
    }