예제 #1
0
        // Used to setup everything before the game starts
        public void Init()
        {
            Time.Start();

            // Setting level names
            startLevel.levelName = "start";
            level01.levelName    = "01";
            winLevel.levelName   = "win";
            loseLevel.levelName  = "lose";
            level02.levelName    = "02";
            loadLevel.levelName  = "load";
            // Setting level color background
            startLevel.SetColor(GetColor(0x052c46ff));
            // Adding level to the list
            level.Add(startLevel);
            level.Add(level01);
            level.Add(winLevel);
            level.Add(loseLevel);
            level.Add(level02);
            level.Add(loadLevel);
            // Setting the start level
            level = level.levels[5];
            level.Active();

            level.Init();
        }