Exemplo n.º 1
0
        public override void ButtonEvent()
        {
            counter = 20;
            for (int i = 0; i < buttonList.Count; i++)
            {
                if (i == cursor.select)
                {
                    buttonList[i].StartAnimation(2f, (float)counter);
                }

                buttonList[i].StartAnimation(new float[2] {
                    0f, 0f
                }, (float)counter);
            }

            foreach (AnimationLabel label in labelList)
            {
                label.StartAnimation(new float[2] {
                    0f, 0f
                }, (float)counter);
            }

            switch (buttonList[cursor.select].id)
            {
            case    0:
                nextMenu = new CharacterSelectMenu(canvas, soundManager);
                break;

            case    1:
                nextMenu = new CharacterSelectMenu(canvas, soundManager);
                break;

            case    2:
                nextMenu = new GalleryMenu(canvas, soundManager);
                break;

            case    3:
                nextMenu = new CreditMenu(canvas, soundManager);
                break;

            case    4:
                Application.Quit();
                break;
            }
            soundManager.PlaySE(0);
            isDelete = true;
        }
Exemplo n.º 2
0
 public override void CancelEvent()
 {
     nextMenu = new CharacterSelectMenu(canvas, soundManager);
     soundManager.PlaySE(2);
 }