public GameLauncher()
        {
            this.inGameUI = new InGameUI();

            //이벤트 등록

            EventDispatcher.GetInstance().AddEventHandler("Monster_Die", (sender, e) => {
                var eventArgs = (GameEvent.MonsterEventArgs)e;
                Console.WriteLine("{0}", eventArgs);
            });

            //버튼 이벤트
            this.inGameUI.btnHeroSkill.onClickEventHandler
                += BtnHeroSkill_onClickEventHandler;

            this.inGameUI.btnHeroSkill.Click();
        }
Example #2
0
        public GameLauncher()
        {
            this.inGameUI = new InGameUI();

            //이벤트 등록
            EventDispatcher.GetInstance().AddEventHandler("MONSTER_DIE", (sender, e) => {
                Console.WriteLine("sender: {0} e: {1}", sender, e);
                var eventArgs = (GameEvent.MonsterEventArgs)e;
                Console.WriteLine("eventArgs:{0}", eventArgs);
            });

            //버튼 이벤트
            this.inGameUI.btnHeroSkill.OnClickEventHandler += BtnHeroSkill_OnClickEventHandler;

            //사용자가 눌렀다고 치면
            this.inGameUI.btnHeroSkill.Click();
        }