Пример #1
0
 void OnDestroy()
 {
     // 注销事件
     GameEventMachine.Unregister(GameEventID.Event_UI_Create, OnCreateUI);
     GameEventMachine.Unregister(GameEventID.Event_UI_Delete, OnDeleteUI);
     GameEventMachine.Unregister(GameEventID.Event_UI_DeleteAll, OnDeleteAllUI);
 }
Пример #2
0
 public override void End()
 {
     // 移除一个UI
     GameEventMachine.SendEvent(GameEventID.Event_UI_Delete, UIType.UIMenu);
     // 注销监听函数
     GameEventMachine.Unregister(GameEventID.Event_UI_Menu_Play, OnGameStart);
 }
Пример #3
0
 void OnDestroy()
 {
     GameEventMachine.Unregister(GameEventID.Event_2UI_ChangeMoney, OnAddMoney);
 }
Пример #4
0
 protected override void Dead()
 {
     GameEventMachine.Unregister(GameEventID.Event_Barman_CreateCocktail, OnGetCocktail);
 }
Пример #5
0
 protected override void Dead()
 {
     GameEventMachine.Unregister(GameEventID.Event_Drinker_FindSeat, OnDrinkerFindSeat);
     GameEventMachine.Unregister(GameEventID.Event_Drinker_LeaveSeat, OnDrinkerLeaveSeat);
 }
Пример #6
0
 public override void OnEnd()
 {
     IsReceive = true;
     GameEventMachine.Unregister(GameEventID.Event_Barman_Tend, OnBarmanTend);
 }
Пример #7
0
 public override void OnEnd()
 {
     GameEventMachine.Unregister(GameEventID.Event_Drinker_CallBarman, OnCallBarman);
     GameEventMachine.Unregister(GameEventID.Event_Drinker_Pay, OnPay);
 }
Пример #8
0
 protected override void Dead()
 {
     GameEventMachine.Unregister(GameEventID.Event_ChangeMoney, ChangeMoney);
 }