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); } }