1
0
forked from cgvr/DeltaVR

refactor NPCController script, make it abstract, extendable; separate AlienNPC and CafeWaiterNPC

This commit is contained in:
2026-01-28 14:23:16 +02:00
parent eb8e33bb3d
commit a8e65514f4
15 changed files with 823 additions and 41 deletions

View File

@@ -0,0 +1,15 @@
using UnityEngine;
public class AlienNPC : NPCController
{
protected override void OnPlayerApproach()
{
Debug.Log("Alien NPC: player approached");
AudioManager.Instance.PlayDialogue(voiceLineKeys[0], gameObject);
}
protected override void OnPlayerLeave()
{
Debug.Log("Alien NPC: player left");
}
}