コード例 #1
0
        public void NextLevel()
        {
            //Finish the fight
            if (Levels.Count > 0)
            {
                CurrentLevel = Levels[NumLevelsCompleted];

                TheLastSliceGame.MapManager.OnNextLevel();
                TheLastSliceGame.Instance.Player.LoadTexture();
                TheLastSliceGame.Instance.Player.Reset();

                CurrentLevel.NextDelivery();
                CurrentLevel.GeneratePickupsAndObstacles();
                LevelStartTime = DateTime.Now;
                //CurrentLevel.CreateRandomPickups();
            }
        }