Exemplo n.º 1
0
        private void SubscribeMediator()
        {
            _gameMediator.Hero   = _hero;
            _gameMediator.Yard   = _yard;
            _gameMediator.UserUI = _userUI;

            _userUI.Subscribe(_gameMediator);
            _gameField.Subscribe(_gameMediator);
            _hero.Subscribe(_gameMediator);
            _yard.Subscribe(_gameMediator);
        }