コード例 #1
0
        /// <summary>
        /// Deserialize our level and add the appropriate background/UI objects
        /// </summary>
        protected override void AddInitialUI()
        {
            base.AddInitialUI();

            //DeserializeLevel();
            PlatformGameplayScreenData data = ScreenData as PlatformGameplayScreenData;
            DebugUtils.AssertNotNull(data);

            GenerationEngine generationEngine = new GenerationEngine(this, data.LevelGenerationDataAsset);
            generationEngine.GenerateLevel();

            DebugUtils.AssertNotNull(Hero);
            DebugUtils.AssertNotNull(Hero.Weapon);
            HUD.Instance.AddObject(new WeaponStatusUI(Hero.Weapon));
        }
コード例 #2
0
 private void Generate(ClickableImage image)
 {
     GenerationEngine engine = new GenerationEngine(this, null);
     engine.GenerateLevel();
 }