Exemplo n.º 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());
        }
Exemplo n.º 2
0
 MenuView(LevelSelectInfo levelSelectInfo)
 {
     _levelSelectInfo = levelSelectInfo;
 }
Exemplo n.º 3
0
 private void _HandleOnClickStart(LevelSelectInfo info)
 {
     _levelSelectInfo = info;
     _tryToLeaveMenu  = true;
 }
Exemplo n.º 4
0
 MenuPresenter(IMenuView menuView, LevelSelectInfo levelSelectInfo)
 {
     _menuView        = menuView;
     _levelSelectInfo = levelSelectInfo;
 }