/* Improvements : when max GenerationData.Height change is greater than one, we need to add colliders for the appropriate 'underneath' textures */ public GenerationEngine(GameplayScreen levelScreen, string generationDataAsset) { LevelScreen = levelScreen; DebugUtils.AssertNotNull(generationDataAsset); GenerationData = AssetManager.GetData<LevelGenerationData>(generationDataAsset); DebugUtils.AssertNotNull(GenerationData); Texture2D tex = AssetManager.GetSprite(GenerationData.WalkableLayerMiddleTextureAsset); TileDimensions = new Vector2(tex.Width, tex.Height); LevelObjects = new UIObject[GenerationData.Height, GenerationData.Width]; }
public LoadingScreen(GameplayScreen screenToTransitionTo, string screenDataAsset = "Screens\\LoadingScreen.xml") : base(screenDataAsset) { ScreenToTransitionTo = screenToTransitionTo; MusicQueueType = QueueType.PlayImmediately; }
public LoadingScreen(GameplayScreen screenToTransitionTo, string screenDataAsset = "Content\\Data\\Screens\\LoadingScreen.xml") : base(screenDataAsset) { ScreenToTransitionTo = screenToTransitionTo; }