//--------------------------------------------------------------------------------------------------------- // Credits - Used in menu selection //--------------------------------------------------------------------------------------------------------- // Transitions to Credits layer //--------------------------------------------------------------------------------------------------------- void Credits(object stuff = null) { var layer = CreditsLayer.CreateScene(Window); var transitionToLayer = new CCTransitionSlideInL(0.2f, layer); Director.ReplaceScene(transitionToLayer); }
//--------------------------------------------------------------------------------------------------------- // CreateScene //--------------------------------------------------------------------------------------------------------- public static CCScene CreateScene(CCWindow mainWindow) { var scene = new CCScene(mainWindow); var layer = new CreditsLayer(); scene.AddChild(layer); return(scene); }