Refactor NPC spawning logic and adjust grid size; remove unused power-up type

This commit is contained in:
2025-12-13 02:59:59 +01:00
parent 0e86d2f4f9
commit 1ae7190fd3
6 changed files with 72 additions and 18 deletions

View File

@@ -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();