public static void runSpriteTest() { SpriteMainScene pScene = new SpritePerformTest1(); pScene.initWithSubTest(1, 50); CCDirector.sharedDirector().replaceScene(pScene); }
public static void runSpriteTest() { SpriteMainScene pScene = new SpritePerformTest1(); pScene.initWithSubTest(1, 50); AppDelegate.SharedWindow.Director.ReplaceScene(pScene); }
public override void showCurrentTest() { SpriteMainScene pScene = null; CCNode ccnode = new CCNode(); SpriteMainScene pPreScene = (SpriteMainScene)ccnode.parent; int nSubTest = pPreScene.getSubTestNum(); int nNodes = pPreScene.getNodesNum(); switch (m_nCurCase) { case 0: pScene = new SpritePerformTest1(); break; case 1: pScene = new SpritePerformTest2(); break; case 2: pScene = new SpritePerformTest3(); break; case 3: pScene = new SpritePerformTest4(); break; case 4: pScene = new SpritePerformTest5(); break; case 5: pScene = new SpritePerformTest6(); break; case 6: pScene = new SpritePerformTest7(); break; } PerformanceSpriteTest.s_nSpriteCurCase = m_nCurCase; if (pScene != null) { pScene.initWithSubTest(nSubTest, nNodes); CCDirector.sharedDirector().replaceScene(pScene); } }
public static void runSpriteTest() { SpriteMainScene pScene = new SpritePerformTest1(); pScene.initWithSubTest(1, 50); AppDelegate.SharedWindow.DefaultDirector.ReplaceScene(pScene); }