コード例 #1
0
        public void Initialize()
        {
            EventAggregator.Add <ButtonPressedEvent>(OnButtonPressedEvent);
            EventAggregator.Add <ButtonRestartEvent>(OnButtonRestartEvent);

            CreateCard(GameConstants.LimitCardsInHand);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public PopupManager()
 {
     _eventAggregator = ProjectContext.Instance.Container.Resolve <EventAggregator>();
     _eventAggregator.Add <ShowPopupEvent <PopupType> >(OnShowPopupEvent);
 }