forked from cgvr/DeltaVR
add archery range and shape detection npc voiceline timelines
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user