예제 #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;
 }