public void Initialize() { EventAggregator.Add <ButtonPressedEvent>(OnButtonPressedEvent); EventAggregator.Add <ButtonRestartEvent>(OnButtonRestartEvent); CreateCard(GameConstants.LimitCardsInHand); }
public override void Initialize(object data) { if (_canvas == null) { _canvas = ProjectContext.Instance.Container.Resolve <MainCanvas>(); _popupManager.SetMainCanvas(_canvas); } _eventAggregator.Add <ImageLoadingCompletedEvent>(CreateLevel); base.Initialize(data); }
public PopupManager() { _eventAggregator = ProjectContext.Instance.Container.Resolve <EventAggregator>(); _eventAggregator.Add <ShowPopupEvent <PopupType> >(OnShowPopupEvent); }