working on quest and interaction system

This commit is contained in:
2026-10-01 15:14:37 +01:00
parent 163939dab8
commit e8af8950e1
1198 changed files with 2503496 additions and 93 deletions

View File

@@ -351,6 +351,13 @@ public class NPCController : MonoBehaviour
private void Die()
{
_isDead = true;
// Check if this NPC is a quest target!
QuestInteractable questTarget = GetComponent<QuestInteractable>();
if (questTarget != null)
{
questTarget.TriggerQuestProgress();
}
if (_agent != null && _agent.isOnNavMesh)
{