Ejemplo n.º 1
0
        public override void showCurrentTest()
        {
            var pScene  = (ParticleMainScene)Parent;
            int subTest = pScene.getSubTestNum();
            int parNum  = pScene.getParticlesNum();

            ParticleMainScene pNewScene = null;

            switch (m_nCurCase)
            {
            case 0:
                pNewScene = new ParticlePerformTest1();
                break;

            case 1:
                pNewScene = new ParticlePerformTest2();
                break;

            case 2:
                pNewScene = new ParticlePerformTest3();
                break;

            case 3:
                pNewScene = new ParticlePerformTest4();
                break;
            }

            PerformanceParticleTest.s_nParCurIdx = m_nCurCase;
            if (pNewScene != null)
            {
                pNewScene.initWithSubTest(subTest, parNum);

                Scene.Director.ReplaceScene(pNewScene);
            }
        }
        public static void runParticleTest()
        {
            ParticleMainScene pScene = new ParticlePerformTest1();
            pScene.initWithSubTest(1, kNodesIncrease);

            CCDirector.SharedDirector.ReplaceScene(pScene);
        }
Ejemplo n.º 3
0
        public static void runParticleTest()
        {
            ParticleMainScene pScene = new ParticlePerformTest1();
            pScene.initWithSubTest(1, kNodesIncrease);

            AppDelegate.SharedWindow.DefaultDirector.ReplaceScene(pScene);
        }
Ejemplo n.º 4
0
        public override void showCurrentTest()
        {
            var pScene = (ParticleMainScene)Parent;
            int subTest = pScene.getSubTestNum();
            int parNum = pScene.getParticlesNum();

            ParticleMainScene pNewScene = null;

            switch (m_nCurCase)
            {
                case 0:
                    pNewScene = new ParticlePerformTest1();
                    break;
                case 1:
                    pNewScene = new ParticlePerformTest2();
                    break;
                case 2:
                    pNewScene = new ParticlePerformTest3();
                    break;
                case 3:
                    pNewScene = new ParticlePerformTest4();
                    break;
            }

            PerformanceParticleTest.s_nParCurIdx = m_nCurCase;
            if (pNewScene != null)
            {
                pNewScene.initWithSubTest(subTest, parNum);

                CCDirector.SharedDirector.ReplaceScene(pNewScene);
            }
        }
        public static void runParticleTest()
        {
            ParticleMainScene pScene = new ParticlePerformTest1();

            pScene.initWithSubTest(1, kNodesIncrease);

            CCDirector.SharedDirector.ReplaceScene(pScene);
        }
Ejemplo n.º 6
0
        public static void runParticleTest()
        {
            ParticleMainScene pScene = new ParticlePerformTest1();

            pScene.initWithSubTest(1, kNodesIncrease);

            AppDelegate.SharedWindow.DefaultDirector.ReplaceScene(pScene);
        }