void StartTutorial(object stuff = null) { var layer = GameTutorialLayer.CreateScene(Window); var transition = new CCTransitionMoveInR(0.3f, layer); Director.ReplaceScene(transition); }
void StartGame(object stuff = null) { var mainGame = Settings.FirstTime ? GameTutorialLayer.CreateScene(Window, true) : GameMainLayer.CreateScene(Window); Settings.FirstTime = false; var transitionToGameOver = new CCTransitionMoveInR(0.3f, mainGame); Director.ReplaceScene(transitionToGameOver); }
public static CCScene CreateScene(CCWindow mainWindow, bool startGameAfter = false) { var scene = new CCScene(mainWindow); var layer = new GameTutorialLayer(startGameAfter); scene.AddChild(layer); return(scene); }