Refactor NPC behavior and teleportation logic; enhance tile material properties
This commit is contained in:
@@ -243,7 +243,7 @@ namespace Infrastructure.Unity
|
||||
if (_playerInstance && hunterNpcPrefab && Random.value < 0.3f)
|
||||
{
|
||||
var hunter = Instantiate(hunterNpcPrefab, spawnPos, Quaternion.identity);
|
||||
hunter.Initialize(_playerInstance);
|
||||
hunter.Initialize(_playerInstance, () => _gameSession.EndGame(), () => _gameSession.TimeDilation);
|
||||
}
|
||||
else if (npcPrefab)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user