Beispiel #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());
        }
Beispiel #2
0
 MenuView(LevelSelectInfo levelSelectInfo)
 {
     _levelSelectInfo = levelSelectInfo;
 }
 private void _HandleOnClickStart(LevelSelectInfo info)
 {
     _levelSelectInfo = info;
     _tryToLeaveMenu  = true;
 }
 MenuPresenter(IMenuView menuView, LevelSelectInfo levelSelectInfo)
 {
     _menuView        = menuView;
     _levelSelectInfo = levelSelectInfo;
 }