public static void runTouchesTest()
        {
            s_nTouchCurCase = 0;
            CCScene pScene = new CCScene();
            CCLayer pLayer = new TouchesPerformTest1(true, TEST_COUNT, s_nTouchCurCase);

            pScene.AddChild(pLayer);

            CCDirector.SharedDirector.ReplaceScene(pScene);
        }
Пример #2
0
        public static void runTouchesTest()
        {
            s_nTouchCurCase = 0;
            CCScene pScene = CCScene.node();
            CCLayer pLayer = new TouchesPerformTest1(true, TEST_COUNT, s_nTouchCurCase);

            pScene.addChild(pLayer);

            CCDirector.sharedDirector().replaceScene(pScene);
        }
Пример #3
0
        public static void runTouchesTest()
        {
            s_nTouchCurCase = 0;
            CCScene pScene = new CCScene(AppDelegate.SharedWindow);
            CCLayer pLayer = new TouchesPerformTest1(true, TEST_COUNT, s_nTouchCurCase);

            pScene.AddChild(pLayer);

            AppDelegate.SharedWindow.Director.ReplaceScene(pScene);
        }
Пример #4
0
        public static void runTouchesTest()
        {
            s_nTouchCurCase = 0;
            CCScene pScene = new CCScene(AppDelegate.SharedWindow, AppDelegate.SharedViewport);
            CCLayer pLayer = new TouchesPerformTest1(true, TEST_COUNT, s_nTouchCurCase);

            pScene.AddChild(pLayer);

            AppDelegate.SharedWindow.DefaultDirector.ReplaceScene(pScene);
        }
Пример #5
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);
            }
        }
Пример #6
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);
            }
        }