void ShowTitle() { TitleView view = null; view = TitleView.Show(uiParent, (_level) => { GetTitleData((_data) => { titleData = _data; inGame.StartGame(_level, new TitleConstData(titleData)); Destroy(view.gameObject); }); }, () => { ResultView resultView = null; resultView = ResultView.Show(uiParent, () => { ShowTitle(); Destroy(resultView.gameObject); }); Destroy(view.gameObject); }); }
public void Show() { View.Show(GameModel.Instance.Models.HasModel); }