コード例 #1
0
        private static IEnumerator _Metagame(DiContainer container)
        {
            var load = SceneManager.LoadSceneAsync("Metagame");

            while (!load.isDone)
            {
                yield return(null);
            }

            GameObject.FindObjectOfType <MetagameInstaller>().Resolve(container);
            LevelSelectInfo levelSelectInfo = new LevelSelectInfo();

            container.Bind <LevelSelectInfo>().FromInstance(levelSelectInfo);

            var menuPresenter = container.Resolve <MenuPresenter>();

            yield return(menuPresenter.Run());
        }
コード例 #2
0
 MenuView(LevelSelectInfo levelSelectInfo)
 {
     _levelSelectInfo = levelSelectInfo;
 }
コード例 #3
0
 private void _HandleOnClickStart(LevelSelectInfo info)
 {
     _levelSelectInfo = info;
     _tryToLeaveMenu  = true;
 }
コード例 #4
0
 MenuPresenter(IMenuView menuView, LevelSelectInfo levelSelectInfo)
 {
     _menuView        = menuView;
     _levelSelectInfo = levelSelectInfo;
 }