Ejemplo n.º 1
0
        void InitCCTransitionScene(float duration, CCScene scene)
        {
            Debug.Assert(scene != null, "Argument scene must be non-nil");

            Duration = duration;

            InScene = scene;

            CCScene outScene = Director.RunningScene;

            if (outScene == null)
            {
                // Creating an empty scene.
                outScene = new CCScene(Window, Viewport, Director);
            }

            Debug.Assert(InScene != outScene, "Incoming scene must be different from the outgoing scene");

            OutScene = outScene;

            transitionSceneContainerLayer = new CCTransitionSceneContainerLayer(InScene, OutScene);

            SceneOrder();

            AddChild(transitionSceneContainerLayer);
        }
Ejemplo n.º 2
0
        void InitCCTransitionScene(float duration, CCScene scene)
        {
            Debug.Assert(scene != null, "Argument scene must be non-nil");

            Duration = duration;

            InScene = scene;

            CCScene outScene = Director.RunningScene;
            if (outScene == null)
            {
                // Creating an empty scene.
                outScene = new CCScene(Window, Viewport, Director);
            }

            Debug.Assert(InScene != outScene, "Incoming scene must be different from the outgoing scene");

            OutScene = outScene;

            transitionSceneContainerLayer = new CCTransitionSceneContainerLayer(InScene, OutScene);

            SceneOrder();

            AddChild(transitionSceneContainerLayer);
        }