1
0
forked from cgvr/DeltaVR

add archery range and shape detection npc voiceline timelines

This commit is contained in:
2026-02-03 12:45:41 +02:00
parent 3bae534a61
commit 1a4e932b1e
52 changed files with 6308 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ public class CafeWaiterNPC : NPCController
// Show transcription and ask whether it is correct
notepadText.text = playerText;
notepad.transform.DOLocalRotate(notepadFlippedRotation, 0.5f);
AudioManager.Instance.PlayDialogue(voiceLineKeys[1], gameObject);
SpeakVoiceLine(1);
state = 2;
} else if (state == 2)
{
@@ -101,12 +101,12 @@ public class CafeWaiterNPC : NPCController
// if player answered positively, bring food, otherwise ask again
if (playerText.ToLower().Contains("yes"))
{
AudioManager.Instance.PlayDialogue(voiceLineKeys[2], gameObject);
SpeakVoiceLine(2);
Invoke("BringFood", 1f);
state = 3;
} else
{
AudioManager.Instance.PlayDialogue(voiceLineKeys[3], gameObject);
SpeakVoiceLine(3);
state = 1;
}
}
@@ -143,7 +143,7 @@ public class CafeWaiterNPC : NPCController
spawnedObject.transform.position = plate.position + new Vector3(0, 1f, 0);
InitializeSpawnedObject(spawnedObject);
AudioManager.Instance.PlayDialogue(voiceLineKeys[4], gameObject);
SpeakVoiceLine(4);
state = 4;
});