Example #1
0
 // Use this for initialization
 void Awake()
 {
     EventDispatcher.AddEventListener(Events.DUNGEON_GRAPH_CREATED, OnGraphCreated);
     EventDispatcher.AddEventListener(Events.PLAYER_ENTER_ROOM, OnPlayerEnterRoom);
     EventDispatcher.AddEventListener(Events.REVEAL_TREASURE_MAP, OnRevealTreasure);
 }
Example #2
0
 public static void AddCmdListener(object cmdID, Action <BaseEvent> listener)
 {
     _dispatcher.AddEventListener(((int)cmdID).ToString(), listener);
 }
Example #3
0
 void Awake()
 {
     EventDispatcher.AddEventListener(Events.MANA_POTION_TAKEN, Regenerate);
 }
Example #4
0
 public override void OnSceneOpened(params object[] sceneData)
 {
     base.OnSceneOpened(sceneData);
     //EventDispatcher.AddEventListener(MessageCommand.OnEnterRoom, OnEnterRoom);
     EventDispatcher.AddEventListener(MessageCommand.Update_Rank, SetupRank);
 }
Example #5
0
 private void AddListeners()
 {
     EventDispatcher.AddEventListener(GameConst.Event.IsFlyChanged, SetCurrentMode);
 }
Example #6
0
 public SelectMap()
 {
     EventDispatcher.AddEventListener(EventDefine.Event_Player_Select_Map, OnMapSelected);
 }
Example #7
0
 //添加事件
 private void AddEvent()
 {
     EventDispatcher.AddEventListener <HeadFrameVo>(EventConst.OnClickHeadFrame, OnClickHeadFrame);
     EventDispatcher.AddEventListener <HeadVo>(EventConst.OnClickHead, OnClickHead);
 }
Example #8
0
 private void AddListeners()
 {
     EventDispatcher.AddEventListener(GameConst.Event.CurSkillChanged, OnCurSkillChanged);
 }
Example #9
0
 public EliteMonster()
 {
     MakeFSM();
     EventDispatcher.AddEventListener <bool>(EventDefine.Event_Struggle_Hold_Success, OnStruggleResult);
 }
 public static void AddListeners()
 {
     EventDispatcher.AddEventListener <EntityParent, int>(Events.LogicSoundEvent.OnHitYelling, OnHitYelling);
 }
Example #11
0
 protected override void OnShow(object[] param, System.Action callback)
 {
     base.OnShow(param, callback);
     EventDispatcher.AddEventListener <string>(FindServerEvent.FindServerSucc, FindServerSucc);
 }
Example #12
0
 private void AddListeners()
 {
     EventDispatcher.AddEventListener(GameConst.Event.TeamOneScoreChanged, OnTeamOneScoreChanged);
     EventDispatcher.AddEventListener(GameConst.Event.TeamOneScoreChanged, OnTeamTwoScoreChanged);
 }
Example #13
0
 private void AddListeners()
 {
     EventDispatcher.AddEventListener <string>(Events.OtherEvent.ClientGM, ProcGM);
 }
Example #14
0
 public void Initialize()
 {
     EventDispatcher.AddEventListener("DialogUI_DownSignUp", OnDialogUIDownSignUp);
 }
Example #15
0
 public MainController()
 {
     EventDispatcher.AddEventListener <PlayerData>(EventsConst.MainScene.PlayerDataResponse, OnPlayerDataResponse);
 }
Example #16
0
 void Initialize()
 {
     EventDispatcher.AddEventListener("MsgBoxBtnUp", OnOKButtonUp);
 }
 public override void Init()
 {
     EventDispatcher.AddEventListener <int>(EventConst.ActivityCapsuleTemplateDrawAnimOver, OnDrawAnimOver);
     EventDispatcher.AddEventListener(EventConst.ActivityCapsuleTemplateRefreshUserInfo, Refresh);
     EventDispatcher.AddEventListener <System.Action <int> >(EventConst.ActivityCapsuleTemplateDraw, SendDrawReq);
 }
 public BattleManager(EntityParent _owner, SkillManager _skillManager)
 {
     this.theOwner     = _owner;
     this.skillManager = _skillManager;
     EventDispatcher.AddEventListener <int, uint, uint, List <int> >(Events.FSMMotionEvent.OnHit, OnHit);
 }
Example #19
0
 // Use this for initialization
 void Awake()
 {
     EventDispatcher.AddEventListener(Events.TELEPORTER_CREATED, OnTeleporterCreated);
     EventDispatcher.AddEventListener(Events.GAME_STARTED, OnGameLoaded);
     _transform = GetComponent <Transform>();
 }
Example #20
0
 /// <summary>添加事件-带参数</summary>
 public void AddEventMsg <T0, T1, T2, T3>(string str, Action <T0, T1, T2, T3> cb, bool isRemove = true)
 {
     EventDispatcher.AddEventListener(str, cb, isRemove);
 }
 public override void Init()
 {
     base.Init();
     EventDispatcher.AddEventListener <SevenSigninTemplateAwardVo>(EventConst.ActivityTemplatePreviewAward, ActivityTemplatePreviewAward);
     EventDispatcher.AddEventListener <SevenSigninTemplateAwardVo>(EventConst.GetActivityTemplateAward, GetActivityTemplateAward);
 }
Example #22
0
 /// <summary>添加事件-不带参数</summary>
 public void AddEventMsg(string str, Action cb, bool isRemove = true)
 {
     EventDispatcher.AddEventListener(str, cb, isRemove);
 }
 protected override void Start()
 {
     base.Start();
     EventDispatcher.AddEventListener(Events.SPECIAL_POWER_USED, OnPowerUsed);
 }
Example #24
0
 public void AddEventListener(string eventType, EventListenerDelegate listener)
 {
     dispatcher.AddEventListener(eventType, listener);
 }
Example #25
0
 /// <summary>
 /// 添加逻辑监听
 /// </summary>
 protected virtual void addEvent()
 {
     EventDispatcher.AddEventListener(GameEventDef.EVNET_SETTING_CONFIRM, ComdButtonA);
     EventDispatcher.AddEventListener(GameEventDef.EVNET_SETTING_SELECT, ComdButtonB);
 }
Example #26
0
 public override void Init()
 {
     EventDispatcher.AddEventListener <int, LevelVo>(EventConst.EnterBattle, OnEnterBattle);
     EventDispatcher.AddEventListener <LevelVo>(EventConst.BuyLevelCount, BuyLevelCount);
 }
 public void Initialize()
 {
     EventDispatcher.AddEventListener <int>(SanctuaryUIEvent.GetMyReward, GetMyReward);
 }
Example #28
0
 private void AddListeners()
 {
     EventDispatcher.AddEventListener(GameConst.Event.HpChanged, SetHpBar);
     EventDispatcher.AddEventListener(GameConst.Event.EnergyChanged, SetMpBar);
 }
Example #29
0
 public virtual void BindEvent()
 {
     EventDispatcher.AddEventListener(EventDefine.Event_DisActive_HitPoint, OnDisActive);
 }
Example #30
0
 public override void OnOpenWindow()
 {
     EventDispatcher.AddEventListener(EventID.EVENT_CITY_BUILDING_MENU_CLOSE, OnClickClose);
     PlayStartAnimation();
 }