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