예제 #1
0
        public override void showCurrentTest()
        {
            CCLayer pLayer = null;
            switch (m_nCurCase)
            {
                case 0:
                    pLayer = new TouchesPerformTest1(true, PerformanceTouchesTest.TEST_COUNT, m_nCurCase);
                    break;
                case 1:
                    pLayer = new TouchesPerformTest2(true, PerformanceTouchesTest.TEST_COUNT, m_nCurCase);
                    break;
            }
            PerformanceTouchesTest.s_nTouchCurCase = m_nCurCase;

            if (pLayer != null)
            {
                CCScene pScene = new CCScene();
                pScene.AddChild(pLayer);

                CCDirector.SharedDirector.ReplaceScene(pScene);
            }
        }
예제 #2
0
        public override void showCurrentTest()
        {
            CCLayer pLayer = null;

            switch (m_nCurCase)
            {
            case 0:
                pLayer = new TouchesPerformTest1(true, PerformanceTouchesTest.TEST_COUNT, m_nCurCase);
                break;

            case 1:
                pLayer = new TouchesPerformTest2(true, PerformanceTouchesTest.TEST_COUNT, m_nCurCase);
                break;
            }
            PerformanceTouchesTest.s_nTouchCurCase = m_nCurCase;

            if (pLayer != null)
            {
                CCScene pScene = new CCScene();
                pScene.AddChild(pLayer);

                CCDirector.SharedDirector.ReplaceScene(pScene);
            }
        }