forked from cgvr/DeltaVR
refactor NPCController script, make it abstract, extendable; separate AlienNPC and CafeWaiterNPC
This commit is contained in:
16
Assets/_PROJECT/Scripts/ModeGeneration/NPCs/CafeWaiterNPC.cs
Normal file
16
Assets/_PROJECT/Scripts/ModeGeneration/NPCs/CafeWaiterNPC.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user