Пример #1
0
 void OnDestroy()
 {
     // 注销事件
     EventMachine.Unregister(EventID.Event_UI_Create, OnCreateUI);
     EventMachine.Unregister(EventID.Event_UI_Delete, OnDeleteUI);
     EventMachine.Unregister(EventID.Event_UI_DeleteAll, OnDeleteAllUI);
 }
Пример #2
0
        public override void End()
        {
            // 移除一个UI
            EventMachine.SendEvent(EventID.Event_UI_Delete, UIType.UIPlay);

            // 注销事件
            EventMachine.Unregister(EventID.Event_UI_Play_Back, OnPlayBack);
            // ...
        }
Пример #3
0
 public override void End()
 {
     // 移除一个UI
     EventMachine.SendEvent(EventID.Event_UI_Delete, UIType.UIMenu);
     EventMachine.SendEvent(EventID.Event_UI_Create, UIType.UILoading);
     // 注销监听函数
     EventMachine.Unregister(EventID.Event_UI_Menu_Play, OnPlay);
     EventMachine.Unregister(EventID.Event_UI_Menu_TwoPlay, OnTwoPlay);
     EventMachine.Unregister(EventID.Event_UI_Menu_Multiplayer, OnMultiplayer);
 }
Пример #4
0
 void OnDestroy()
 {
     EventMachine.Unregister(EventID.Event_Loading, OnLoadingProgress);
 }
Пример #5
0
 void OnDestroy()
 {
     EventMachine.Unregister(EventID.Event_Effect_CameraVibration, OnCameraVibration);
     EventMachine.Unregister(EventID.Event_Effect_CameraAnimation, OnCameraAnimation);
 }