Exemplo n.º 1
0
        private void SetupGameScene(CCScene gameScene)
        {
            gameScene.AddLayer(_layer);

            RedrawGameScene();

            _layer.Schedule(Update);
        }
Exemplo n.º 2
0
        private void SetupGameScene(CCScene gameScene)
        {
            gameScene.AddLayer(_layer);

            _layer.AddChild(_pendulumString);

            RedrawGameScene();

            _layer.Schedule(Update);
        }
        private void SetupGameScene(CCScene gameScene)
        {
            gameScene.AddLayer(_layer);

            _layer.AddChild(_car1DrawNode);
            _layer.AddChild(_car2DrawNode);

            ReDrawScene();

            _layer.Schedule(Update);
        }
Exemplo n.º 4
0
        public SchedulerTest1()
        {
            CCLayer layer = new CCLayer();

            //UXLOG("retain count after init is %d", layer->retainCount());                // 1

            AddChild(layer, 0);
            //UXLOG("retain count after addChild is %d", layer->retainCount());      // 2

            layer.Schedule((doSomething));
            //UXLOG("retain count after schedule is %d", layer->retainCount());      // 3 : (object-c viersion), but win32 version is still 2, because CCTimer class don't save target.

            layer.Unschedule((doSomething));
            //UXLOG("retain count after unschedule is %d", layer->retainCount());		// STILL 3!  (win32 is '2')
        }