working on quest and interaction system
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user