public void Open(object model, BaseWindowView view) { _model = (GameWindowModel)model; _view = (GameWindowView)view; _view.Init((action) => _model.RegisterInput(action)); }
public void Open(object model, BaseWindowView view) { _model = (MainMenuWindowModel)model; _view = (MainMenuWindowView)view; _view.Init(new MainMenuWindowView.Data() { Levels = _model.Levels, PlayAction = PlayLevel }); }
private void DestroyWindowView(BaseWindowView view) { GameObject.Destroy(view.gameObject); }