public void restartCallback(CCObject pSender) { CCScene s = new TransitionsTestScene(); CCLayer pLayer = new TestLayer2(); s.addChild(pLayer); CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s); if (pScene != null) { CCDirector.sharedDirector().replaceScene(pScene); } }
public override void RestartCallback(object sender) { base.RestartCallback(sender); CCScene s = new TransitionsTestScene(); CCLayer pLayer = new TestLayer2(); s.AddChild(pLayer); CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s); if (pScene != null) { Director.ReplaceScene(pScene); } }
public void restartCallback(object pSender) { CCScene s = new TransitionsTestScene(); CCLayer pLayer = new TestLayer2(); s.AddChild(pLayer); CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s); if (pScene != null) { CCDirector.SharedDirector.ReplaceScene(pScene); } }
public void nextCallback(object pSender) { TransitionsTestScene.s_nSceneIdx++; TransitionsTestScene.s_nSceneIdx = TransitionsTestScene.s_nSceneIdx % TransitionsTestScene.MAX_LAYER; CCScene s = new TransitionsTestScene(); CCLayer pLayer = new TestLayer2(); s.AddChild(pLayer); CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s); if (pScene != null) { CCDirector.SharedDirector.ReplaceScene(pScene); } }
public void backCallback(CCObject pSender) { TransitionsTestScene.s_nSceneIdx--; int total = TransitionsTestScene.MAX_LAYER; if (TransitionsTestScene.s_nSceneIdx < 0) TransitionsTestScene.s_nSceneIdx += total; CCScene s = new TransitionsTestScene(); CCLayer pLayer = new TestLayer2(); s.addChild(pLayer); CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s); if (pScene != null) { CCDirector.sharedDirector().replaceScene(pScene); } }
public void nextCallback(CCObject pSender) { TransitionsTestScene.s_nSceneIdx++; TransitionsTestScene.s_nSceneIdx = TransitionsTestScene.s_nSceneIdx % TransitionsTestScene.MAX_LAYER; CCScene s = new TransitionsTestScene(); CCLayer pLayer = new TestLayer2(); s.addChild(pLayer); CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s); if (pScene != null) { CCDirector.sharedDirector().replaceScene(pScene); } }
public void backCallback(object pSender) { TransitionsTestScene.s_nSceneIdx--; int total = TransitionsTestScene.MAX_LAYER; if (TransitionsTestScene.s_nSceneIdx < 0) { TransitionsTestScene.s_nSceneIdx += total; } CCScene s = new TransitionsTestScene(); CCLayer pLayer = new TestLayer2(); s.AddChild(pLayer); CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s); if (pScene != null) { CCDirector.SharedDirector.ReplaceScene(pScene); } }
public override void BackCallback(object sender) { base.BackCallback(sender); TransitionsTestScene.s_nSceneIdx--; int total = TransitionsTestScene.MAX_LAYER; if (TransitionsTestScene.s_nSceneIdx < 0) TransitionsTestScene.s_nSceneIdx += total; CCScene s = new TransitionsTestScene(); CCLayer pLayer = new TestLayer2(); s.AddChild(pLayer); CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s); if (pScene != null) { Director.ReplaceScene(pScene); } }