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,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CafeWaiterNPC : NPCController
{
protected override void OnPlayerApproach()
{
AudioManager.Instance.PlayDialogue(voiceLineKeys[0], gameObject);
}
protected override void OnPlayerLeave()
{
AudioManager.Instance.PlayDialogue(voiceLineKeys[1], gameObject);
}
}