Add levelnumber in level initialization log

This commit is contained in:
Denis-Cosmin Nutiu 2019-07-14 14:15:14 +03:00
parent 6cc8a4e6b3
commit 7031e02778
3 changed files with 7 additions and 4 deletions

View file

@ -90,7 +90,6 @@ namespace src.Managers
public void StartNextLevel()
{
DebugHelper.LogInfo("Initializing next level!");
_levelManager.DestroyLevel();
_upgradeManager.DestroyUnclaimedUpgrades();
_gameStateManager.IncreaseLevel();

View file

@ -68,6 +68,9 @@ namespace src.Managers
private List<Vector3> _freeGridPositions;
private List<GameObject> _destructibleWalls;
private List<GameObject> _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<Vector3>(_freeGridPositionsBoard);
_destructibleWalls = new List<GameObject>();
_enemies = new List<GameObject>();

View file

@ -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: {}