Пример #1
0
        private void RegisterSceneEvent()
        {
            mScene = SceneMachine.GetCurrentScene() as GameScene;

            if (mScene != null)
            {
                mScene.RegisterSceneEvent(SceneEventType.SE_NotifyTSDKLoginSucceed, TSDKLoginSuccees);
                mScene.RegisterSceneEvent(SceneEventType.SE_NotifyTSDKLoginFail, OnLoginFail);
                mScene.RegisterSceneEvent(SceneEventType.SE_NotifyStartTSDKLogin, OnStartLogin);
                mScene.RegisterSceneEvent(SceneEventType.SE_NotifyVersionUpdate, OnStatrVersionCheck);
                mScene.RegisterSceneEvent(SceneEventType.SE_NotifyConfigCheck, StartConfigCheck);
            }

            mGlobalEventQueue = new EventHandlerQueue(CrossContextEventProcessor.GetInstance());
            mGlobalEventQueue.Add((int)CrossContextEventType.GE_NetWorkState, OnNetWorkState);
        }
Пример #2
0
 void OnLevelWasLoaded()
 {
     CrossContextEventProcessor.GetInstance().Notify(new Air2000.Event((int)CrossContextEventType.GE_LevelWasLoaded));
 }