void nextlevel(object sender)
 {
     //http://blog.csdn.net/fengyun1989/article/details/7486505
     GamePlayScene pScene;
     if (PhoneApplicationService.Current.State.ContainsKey("PlayScene"))
     {
         pScene = (GamePlayScene)PhoneApplicationService.Current.State["PlayScene"];
         GamePlayLayer player = (GamePlayLayer)pScene.getChildByTag(3);
         player.Reset(false);
     }
     else
     {
         pScene = new GamePlayScene();
     }
     CCDirector.sharedDirector().replaceScene(pScene);
 }
Example #2
0
 void playCallback(object sender)
 {
     GamePlayScene pScene = new GamePlayScene();
     CCDirector.sharedDirector().pushScene(pScene);
 }