Exemple #1
0
        //---------------------------------------------------------------------------------------------------------
        // 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);
        }
Exemple #2
0
        //---------------------------------------------------------------------------------------------------------
        // CreateScene
        //---------------------------------------------------------------------------------------------------------
        public static CCScene CreateScene(CCWindow mainWindow)
        {
            var scene = new CCScene(mainWindow);
            var layer = new CreditsLayer();

            scene.AddChild(layer);

            return(scene);
        }