Пример #1
0
 public LevelEngine(GameEngine gameEngine, XLevelInfo levelInfo, XLevelScore levelScore)
     : base(gameEngine, levelInfo.File)
 {
     this.LevelInfo  = levelInfo;
     this.LevelScore = levelScore;
     this.cps        = new EventRateCounter(TimeSpan.FromSeconds(game.GameObject.CpsTimeSpan));
 }
Пример #2
0
        public void LoadLevel(XLevelInfo levelInfo)
        {
#if IPHONE
            MonoTouch.UIKit.UIApplication.SharedApplication.BeginIgnoringInteractionEvents();
#endif
            var levelEngine = new LevelEngine(this, levelInfo, this.ScoreFile.LevelScoreDict[levelInfo.Id]);
            levelEngine.Owner = this.ScreenEngine;

            StartLevelInitialize(levelEngine);
        }