Пример #1
0
        public override void runThisTest()
        {
            CCLayer pLayer = new TestLayer1();

            AddChild(pLayer);

            Director.ReplaceScene(this);
        }
Пример #2
0
        public override void runThisTest()
        {
            CCLayer pLayer = new TestLayer1();

            addChild(pLayer);

            CCDirector.sharedDirector().replaceScene(this);
        }
Пример #3
0
        public void restartCallback(object pSender)
        {
            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();
            s.AddChild(pLayer);

            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);

            if (pScene != null)
            {
                CCDirector.SharedDirector.ReplaceScene(pScene);
            }
        }
Пример #4
0
        public void restartCallback(CCObject pSender)
        {
            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();
            s.addChild(pLayer);

            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);

            if (pScene != null)
            {
                CCDirector.sharedDirector().replaceScene(pScene);
            }
        }
Пример #5
0
        public override void RestartCallback(object sender)
        {
            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();

            s.AddChild(pLayer);

            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);

            if (pScene != null)
            {
                Director.ReplaceScene(pScene);
            }
        }
Пример #6
0
        public void nextCallback(CCObject pSender)
        {
            TransitionsTestScene.s_nSceneIdx++;
            TransitionsTestScene.s_nSceneIdx = TransitionsTestScene.s_nSceneIdx % TransitionsTestScene.MAX_LAYER;

            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();
            s.addChild(pLayer);
            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);

            if (pScene != null)
            {
                CCDirector.sharedDirector().replaceScene(pScene);
            }
        }
Пример #7
0
		public override void NextCallback(object sender)
		{
            TransitionsTestScene.s_nSceneIdx++;
            TransitionsTestScene.s_nSceneIdx = TransitionsTestScene.s_nSceneIdx % TransitionsTestScene.MAX_LAYER;

            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();
            s.AddChild(pLayer);
            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);

            if (pScene != null)
            {
                Director.ReplaceScene(pScene);
            }
        }
Пример #8
0
        public void nextCallback(object pSender)
        {
            TransitionsTestScene.s_nSceneIdx++;
            TransitionsTestScene.s_nSceneIdx = TransitionsTestScene.s_nSceneIdx % TransitionsTestScene.MAX_LAYER;

            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();

            s.AddChild(pLayer);
            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);

            if (pScene != null)
            {
                CCDirector.SharedDirector.ReplaceScene(pScene);
            }
        }
Пример #9
0
        public void backCallback(CCObject pSender)
        {
            TransitionsTestScene.s_nSceneIdx--;
            int total = TransitionsTestScene.MAX_LAYER;
            if (TransitionsTestScene.s_nSceneIdx < 0)
                TransitionsTestScene.s_nSceneIdx += total;

            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();
            s.addChild(pLayer);

            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);
            
            if (pScene != null)
            {
                CCDirector.sharedDirector().replaceScene(pScene);
            }
        }
Пример #10
0
        public void backCallback(object pSender)
        {
            TransitionsTestScene.s_nSceneIdx--;
            int total = TransitionsTestScene.MAX_LAYER;
            if (TransitionsTestScene.s_nSceneIdx < 0)
                TransitionsTestScene.s_nSceneIdx += total;

            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();
            s.AddChild(pLayer);

            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);

            if (pScene != null)
            {
                CCDirector.SharedDirector.ReplaceScene(pScene);
            }
        }
Пример #11
0
        public override void BackCallback(object sender)
        {
            TransitionsTestScene.s_nSceneIdx--;
            int total = TransitionsTestScene.MAX_LAYER;

            if (TransitionsTestScene.s_nSceneIdx < 0)
            {
                TransitionsTestScene.s_nSceneIdx += total;
            }

            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();

            s.AddChild(pLayer);

            CCScene pScene = TransitionsTestScene.createTransition(TransitionsTestScene.s_nSceneIdx, TransitionsTestScene.TRANSITION_DURATION, s);

            if (pScene != null)
            {
                Director.ReplaceScene(pScene);
            }
        }
Пример #12
0
        public override void runThisTest()
        {
            CCLayer pLayer = new TestLayer1();
            AddChild(pLayer);

            CCDirector.SharedDirector.ReplaceScene(this);
        }
Пример #13
0
        public void backCallback(CCObject pSender)
        {
            s_nSceneIdx--;
            int total = MAX_LAYER;
            if (s_nSceneIdx < 0)
                s_nSceneIdx += total;

            CCScene s = new TransitionsTestScene();

            CCLayer pLayer = new TestLayer1();
            s.addChild(pLayer);

            CCScene pScene = TransitionsTestScene.createTransition(s_nSceneIdx, TRANSITION_DURATION, s);

            if (pScene != null)
            {
                CCDirector.sharedDirector().replaceScene(pScene);
            }
        }