diff --git a/Assets/Scripts/src/Managers/GameManager.cs b/Assets/Scripts/src/Managers/GameManager.cs index c22bb1e..16ec65c 100644 --- a/Assets/Scripts/src/Managers/GameManager.cs +++ b/Assets/Scripts/src/Managers/GameManager.cs @@ -90,7 +90,6 @@ namespace src.Managers public void StartNextLevel() { - DebugHelper.LogInfo("Initializing next level!"); _levelManager.DestroyLevel(); _upgradeManager.DestroyUnclaimedUpgrades(); _gameStateManager.IncreaseLevel(); diff --git a/Assets/Scripts/src/Managers/LevelManager.cs b/Assets/Scripts/src/Managers/LevelManager.cs index ac35ea2..ab9e24e 100644 --- a/Assets/Scripts/src/Managers/LevelManager.cs +++ b/Assets/Scripts/src/Managers/LevelManager.cs @@ -68,6 +68,9 @@ namespace src.Managers private List _freeGridPositions; private List _destructibleWalls; private List _enemies; + + /* Singletons */ + private GameStateManager _gameStateManager = GameStateManager.Instance; /* Modifies walls from _destructibleWalls in order to setup upgrades*/ private void SetupSpawnables() @@ -218,6 +221,7 @@ namespace src.Managers /* Initializes the level. */ public void InitLevel() { + DebugHelper.LogInfo($"Initializing level: #{_gameStateManager.Level}"); _freeGridPositions = new List(_freeGridPositionsBoard); _destructibleWalls = new List(); _enemies = new List(); diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 8887fbb..f76ea9b 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -591,9 +591,9 @@ PlayerSettings: webGLThreadsSupport: 0 scriptingDefineSymbols: 1: CROSS_PLATFORM_INPUT - 4: CROSS_PLATFORM_INPUT - 7: CROSS_PLATFORM_INPUT - 14: + 4: CROSS_PLATFORM_INPUT;MOBILE_INPUT + 7: CROSS_PLATFORM_INPUT;MOBILE_INPUT + 14: MOBILE_INPUT platformArchitecture: {} scriptingBackend: {} il2cppCompilerConfiguration: {}