Ejemplo n.º 1
0
        public void Open(object model, BaseWindowView view)
        {
            _model = (GameWindowModel)model;
            _view  = (GameWindowView)view;

            _view.Init((action) => _model.RegisterInput(action));
        }
Ejemplo n.º 2
0
        public void Open(object model, BaseWindowView view)
        {
            _model = (MainMenuWindowModel)model;
            _view  = (MainMenuWindowView)view;

            _view.Init(new MainMenuWindowView.Data()
            {
                Levels     = _model.Levels,
                PlayAction = PlayLevel
            });
        }
Ejemplo n.º 3
0
 private void DestroyWindowView(BaseWindowView view)
 {
     GameObject.Destroy(view.gameObject);
 }