Пример #1
0
        public void Update(GameTime gameTime)
        {
            if (counter > -1)
            {
                counter--;
            }
            if (counter == 0)
            {
                counter = -1;
                currentLevel = new ButterflyLevel(myCamera, player, errorLogger, myGame);
                currentLevel.LoadContent(content, myGame.GraphicsDevice.Viewport);
                currentLevel.Completed += new ButterflyLevel.LevelFinishedEventHandler(currentLevel_Completed);
                return;
            }

            currentLevel.Update(gameTime);
        }
Пример #2
0
 public void Initalize()
 {
     currentLevel = new ButterflyLevel(myCamera, player, errorLogger, myGame);
     currentLevel.Completed += new ButterflyLevel.LevelFinishedEventHandler(currentLevel_Completed);
 }