try
This commit is contained in:
parent
f917c78e61
commit
e04e0681f7
1 changed files with 2 additions and 3 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue