コード例 #1
0
ファイル: LevelEngine.cs プロジェクト: valsavva/dynacat
 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);
        }