コード例 #1
0
 public static void LoadLevel(LevelType level)
 {
     Data.CurrentLevel = level;
     Pool.Reset();
     switch (level)
     {
     case LevelType.Level1:
         Level_1.Load();
         break;
     }
 }
コード例 #2
0
        public static void LoadLevel(uint index)
        {
            Pool.Reset();
            switch (index)
            {
            case 0:
                Level_0.Load();
                break;

            case 1:
                Level_1.Load();
                break;

            case 2:
                Level_2.Load();
                break;
            }
            Data.CurrentLevel = index;
            PutCameraOnPlayer();
        }