Beispiel #1
0
        private void SetNewScene(float dt)
        {
            Unschedule(SetNewScene);

            // Before replacing, save the "send cleanup to scene"
            CCDirector director = CCDirector.SharedDirector;

            m_bIsSendCleanupToScene = director.IsSendCleanupToScene();
            director.ReplaceScene(m_pInScene);

            // issue #267
            m_pOutScene.Visible = true;
        }
        private void SetNewScene(float dt)
        {
            // [self unschedule:_cmd];
            // "_cmd" is a local variable automatically defined in a method
            // that contains the selector for the method
            Unschedule(SetNewScene);
            CCDirector director = CCDirector.SharedDirector;

            // Before replacing, save the "send cleanup to scene"
            m_bIsSendCleanupToScene = director.IsSendCleanupToScene();
            director.ReplaceScene(m_pInScene);
            // enable events while transitions
            director.TouchDispatcher.IsDispatchEvents = true;

            // issue #267
            m_pOutScene.Visible = true;
        }