Пример #1
0
        IEnumerator RhythmGameResultClose()
        {
            yield return(new WaitForSeconds(3.0f));

            foreach (var o in ListCorNote)
            {
                if (o != null)
                {
                    StopCoroutine(o);
                }
            }

            ListCorNote.Clear();
            rhythmGameController.GameEnd();
            UI.IDialog.RequestDialogExit <UI.RhythmGameResultDialog>();
            UI.IDialog.RequestDialogEnter <UI.RhythmGameMusicSelectDialog>();
            SoundManager.Instance.PlaySound((int)SoundType.EFFCT_MENU_Close, mobileOptionModel.MobileOption.effectVolume);
        }
Пример #2
0
        IEnumerator RhythmGameResultClose()
        {
            yield return(new WaitForSeconds(5.0f));

            UI.IDialog.RequestDialogExit <UI.RhythmGameResultDialog>();
            settingModel.IsPlayGame = false;
            rhythmGame_Controller.GameEnd();

            BluetoothData data = new BluetoothData();

            data.msg       = "";
            data.dataType  = SENDMSGTYPE.MENU;
            data.musicInfo = MUSICINFO.None;
            string dataMsg;

            data.menu = Menu.Main;
            dataMsg   = JsonUtility.ToJson(data);
            Message.Send <TabletMotionMsg>(new TabletMotionMsg(dataMsg));
            Message.Send <RunMenuMsg>(new RunMenuMsg(Menu.None));
        }