public void onPushScene(CCObject pSender) { CCScene scene = new SceneTestScene(); CCLayer pLayer = new SceneTestLayer2(); scene.addChild(pLayer, 0); CCDirector.sharedDirector().pushScene(scene); }
public void onReplaceScene(CCObject pSender) { CCScene pScene = new SceneTestScene(); CCLayer pLayer = new SceneTestLayer3(); pScene.addChild(pLayer, 0); CCDirector.sharedDirector().replaceScene(pScene); }
public void onReplaceSceneTran(CCObject pSender) { CCScene pScene = new SceneTestScene(); CCLayer pLayer = new SceneTestLayer3(); pScene.addChild(pLayer, 0); CCDirector.sharedDirector().replaceScene(pScene); //(CCTransitionFlipX.transitionWithDuration(2, pScene)); }
public void onPushSceneTran(CCObject pSender) { CCScene scene = new SceneTestScene(); CCLayer pLayer = new SceneTestLayer2(); scene.addChild(pLayer, 0); CCDirector.sharedDirector().pushScene(scene); //(CCTransitionSlideInT.transitionWithDuration(1f, scene)); }