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