public void Initialize() { var selfPlayer = Locator.PlayerManager.GetPlayer(GameTypes.PlayerType.SELF); var selfPlayerViewModel = new PlayerViewModel(selfPlayer); var enemyPlayer = Locator.PlayerManager.GetPlayer(GameTypes.PlayerType.ENEMY); var enemyPlayerViewModel = new PlayerViewModel(enemyPlayer); PlayerUIPresenter.Initialize(selfPlayerViewModel, enemyPlayerViewModel, _uiManager.Players); BoardUIPresenter.Initialize(selfPlayerViewModel, _uiManager.Lifes); BoardUIPresenter.Initialize(enemyPlayerViewModel, _uiManager.Lifes); }
public OutGamePresenter(UIManager uiManager) { _uiManager = uiManager; PlayerUIPresenter = new PlayerUIPresenter(); BoardUIPresenter = new BoardUIPresenter(); }