From e04e0681f73543c0d6c6cc2214a912aa97cca59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Thu, 8 Aug 2019 23:48:40 +0300 Subject: [PATCH] try --- Assets/Scripts/src/Level/LevelManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/src/Level/LevelManager.cs b/Assets/Scripts/src/Level/LevelManager.cs index 8ee9166..6cd1f0d 100644 --- a/Assets/Scripts/src/Level/LevelManager.cs +++ b/Assets/Scripts/src/Level/LevelManager.cs @@ -218,14 +218,13 @@ namespace src.Level } } - private bool PlaceEnemy(Vector3 position) + private void PlaceEnemy(Vector3 position) { DebugHelper.LogVerbose($"PlaceEnemy: x:{position.x} y:{position.y}"); var randomEnemy = _enemiesPrefab.ChoseRandom(); var instance = Instantiate(randomEnemy, position, Quaternion.identity); - _enemies.Add(instance); instance.transform.SetParent(boardHolder); - return true; + _enemies.Add(instance); } /* Initializes the level. */