Пример #1
0
        public void Execute(EndRound cmd)
        {
            GameData.LastRoundWin = cmd.Win;

            State = new State.Shell();
            MusicManager.Instance.CrossFadeIn();
            StartCoroutine(GotoEndRoundUICoroutine(cmd));
        }
Пример #2
0
        IEnumerator GotoEndRoundUICoroutine(EndRound cmd)
        {
            yield return(new WaitForSeconds(2));

            MainRoot.Goto(MainRoot.UIStateName.EndRound);
            while (!EndRoundUI.Instance)
            {
                yield return(new WaitForEndOfFrame());
            }
            EndRoundUI.Instance.PlayEndRoundProcess(cmd);
        }