Example #1
0
        public static CCLayer createSchedulerTest(int nIndex)
        {
            CCLayer pLayer = null;

            switch (nIndex)
            {
                case 0:
                    pLayer = new SchedulerAutoremove(); break;
                case 1:
                    pLayer = new SchedulerPauseResume(); break;
                case 2:
                    pLayer = new SchedulerUnscheduleAll(); break;
                case 3:
                    pLayer = new SchedulerUnscheduleAllHard(); break;
                case 4:
                    pLayer = new SchedulerSchedulesAndRemove(); break;
                case 5:
                    pLayer = new SchedulerUpdate(); break;
                case 6:
                    pLayer = new SchedulerUpdateAndCustom(); break;
                case 7:
                    pLayer = new SchedulerUpdateFromCustom(); break;
                default:
                    break;
            }

            return pLayer;
        }
        public static CCLayer createSchedulerTest(int nIndex)
        {
            CCLayer pLayer = null;

            switch (nIndex)
            {
            case 0:
                pLayer = new SchedulerAutoremove(); break;

            case 1:
                pLayer = new SchedulerPauseResume(); break;

            case 2:
                pLayer = new SchedulerUnscheduleAll(); break;

            case 3:
                pLayer = new SchedulerUnscheduleAllHard(); break;

            case 4:
                pLayer = new SchedulerSchedulesAndRemove(); break;

            case 5:
                pLayer = new SchedulerUpdate(); break;

            case 6:
                pLayer = new SchedulerUpdateAndCustom(); break;

            case 7:
                pLayer = new SchedulerUpdateFromCustom(); break;

            default:
                break;
            }

            return(pLayer);
        }