示例#1
0
        private IEnumerator _InGame()
        {
            yield return(new WaitForSeconds(SceneSystem.PopAndPushScene(_inGame)));

            ResetGameMessage();
            while (true)
            {
                yield return(0);

                if (GetGameMessage(GameMessage.Return))
                {
                    StartCoroutine(_StartMenu());
                    yield break;
                }
                if (GetGameMessage(GameMessage.Exit))
                {
                    Application.Quit();
                    yield break;
                }
            }
        }
示例#2
0
        private IEnumerator _Lobby()
        {
            yield return(new WaitForSeconds(SceneSystem.PopAndPushScene(_lobby)));

            ResetGameMessage();
            while (true)
            {
                yield return(0);

                if (GetGameMessage(GameMessage.Start))
                {
                    StartCoroutine(_InGame());
                    yield break;
                }
                if (GetGameMessage(GameMessage.Return))
                {
                    StartCoroutine(_StartMenu());
                    yield break;
                }
            }
        }