Refactor NPC spawning logic and adjust grid size; remove unused power-up type
This commit is contained in:
@@ -281,7 +281,8 @@ namespace Infrastructure.Unity
|
||||
}
|
||||
else if (npcPrefab)
|
||||
{
|
||||
Instantiate(npcPrefab, spawnPos, Quaternion.identity);
|
||||
var npc = Instantiate(npcPrefab, spawnPos, Quaternion.identity);
|
||||
npc.Initialize(() => _gameSession.TimeDilation, () => _gameSession.EndGame());
|
||||
}
|
||||
|
||||
soundManager.PlayNpcSpawn();
|
||||
|
||||
Reference in New Issue
Block a user