void StartNewGame(object stuff = null) { var level = LevelIntroLayer.CreateScene(Window, levels, activePlayer); var transitionToGame = new CCTransitionFade(3.0f, level); Director.ReplaceScene(transitionToGame); }
public static CCScene CreateScene(CCWindow mainWindow, List <Level> gameLevels, Player player) { var scene = new CCScene(mainWindow); var layer = new LevelIntroLayer(gameLevels, player); scene.AddChild(layer); return(scene); }