public void menuCallback(CCObject pSender)
        {
            CCMenuItemFont pItem = (CCMenuItemFont)pSender;
            int nIndex = pItem.zOrder - BugsTestScene.kItemTagBasic;

            CCScene pScene = CCScene.node();
            CCLayer pLayer = null;

            switch (nIndex)
            {
                case 0:
                    pLayer = new Bug350Layer();
                    pLayer.init();
                    break;
                case 1:
                    pLayer = new Bug422Layer();
                    pLayer.init();
                    break;
                case 2:
                    pLayer = new Bug458Layer();
                    pLayer.init();
                    break;
                case 3:
                    pLayer = new Bug624Layer();
                    pLayer.init();
                    break;
                case 4:
                    pLayer = new Bug886Layer();
                    pLayer.init();
                    break;
                case 5:
                    pLayer = new Bug899Layer();
                    pLayer.init();
                    break;
                case 6:
                    pLayer = new Bug914Layer();
                    pLayer.init();
                    break;
                case 7:
                    pLayer = new Bug1159Layer();
                    pLayer.init();
                    break;
                case 8:
                    pLayer = new Bug1174Layer();
                    pLayer.init();
                    break;
                case 9:
                    pLayer = new CCDefaultCodeBug();
                    pLayer.init();
                    break;
                case 10:
                    pLayer = new DispatcherTest();
                    pLayer.init();
                    break;
                default:
                    break;
            }
            pScene.addChild(pLayer);
            CCDirector.sharedDirector().replaceScene(pScene);
        }
 public void restart(CCObject sender)
 {
     CCDirector.sharedDirector().replaceScene(CCDefaultCodeBug.scene());
 }
        public void menuCallback(CCObject pSender)
        {
            CCMenuItemFont pItem  = (CCMenuItemFont)pSender;
            int            nIndex = pItem.zOrder - BugsTestScene.kItemTagBasic;

            CCScene pScene = CCScene.node();
            CCLayer pLayer = null;

            switch (nIndex)
            {
            case 0:
                pLayer = new Bug350Layer();
                pLayer.init();
                break;

            case 1:
                pLayer = new Bug422Layer();
                pLayer.init();
                break;

            case 2:
                pLayer = new Bug458Layer();
                pLayer.init();
                break;

            case 3:
                pLayer = new Bug624Layer();
                pLayer.init();
                break;

            case 4:
                pLayer = new Bug886Layer();
                pLayer.init();
                break;

            case 5:
                pLayer = new Bug899Layer();
                pLayer.init();
                break;

            case 6:
                pLayer = new Bug914Layer();
                pLayer.init();
                break;

            case 7:
                pLayer = new Bug1159Layer();
                pLayer.init();
                break;

            case 8:
                pLayer = new Bug1174Layer();
                pLayer.init();
                break;

            case 9:
                pLayer = new CCDefaultCodeBug();
                pLayer.init();
                break;

            case 10:
                pLayer = new DispatcherTest();
                pLayer.init();
                break;

            default:
                break;
            }
            pScene.addChild(pLayer);
            CCDirector.sharedDirector().replaceScene(pScene);
        }