This commit is contained in:
Denis-Cosmin Nutiu 2019-08-08 23:48:40 +03:00
parent f917c78e61
commit e04e0681f7

View file

@ -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}"); DebugHelper.LogVerbose($"PlaceEnemy: x:{position.x} y:{position.y}");
var randomEnemy = _enemiesPrefab.ChoseRandom(); var randomEnemy = _enemiesPrefab.ChoseRandom();
var instance = Instantiate(randomEnemy, position, Quaternion.identity); var instance = Instantiate(randomEnemy, position, Quaternion.identity);
_enemies.Add(instance);
instance.transform.SetParent(boardHolder); instance.transform.SetParent(boardHolder);
return true; _enemies.Add(instance);
} }
/* Initializes the level. */ /* Initializes the level. */