forked from cgvr/DeltaVR
treat more words as positive, make serving tray larger
This commit is contained in:
@@ -29,10 +29,7 @@
|
|||||||
* UFO möödalendamise animation/cutscene alguses kui ütleb "delta attacked by ufos"
|
* UFO möödalendamise animation/cutscene alguses kui ütleb "delta attacked by ufos"
|
||||||
* cafe:
|
* cafe:
|
||||||
* võiks saada hinnata saadud tellimust
|
* võiks saada hinnata saadud tellimust
|
||||||
* spawnitud order liiga väike, diameter 0.6ks
|
|
||||||
* kandik ka suuremaks, ülemine osa kõrgemale
|
|
||||||
* "order again" nupp
|
* "order again" nupp
|
||||||
* "sure", "of course", "okay", "affirmative", "yup" = jah
|
|
||||||
* continuos collision spawnitud orderitele
|
* continuos collision spawnitud orderitele
|
||||||
|
|
||||||
Can't/Won't Do:
|
Can't/Won't Do:
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -122,7 +122,7 @@ public class CafeWaiterNPC : NPCController
|
|||||||
} else if (state == 2)
|
} else if (state == 2)
|
||||||
{
|
{
|
||||||
fmodWhisperBridge.DeactivateRecording();
|
fmodWhisperBridge.DeactivateRecording();
|
||||||
bool positiveAnswer = playerText.ToLower().Contains("ye") || playerText.ToLower().Contains("correct") | playerText.ToLower().Contains("right");
|
bool positiveAnswer = IsPlayerAnswerPositive(playerText);
|
||||||
SpeakVoiceLine(positiveAnswer ? 2 : 3);
|
SpeakVoiceLine(positiveAnswer ? 2 : 3);
|
||||||
// Flip notepad back
|
// Flip notepad back
|
||||||
notepad.transform.DOLocalRotate(notepadOriginalRotation, 0.5f).OnComplete(() =>
|
notepad.transform.DOLocalRotate(notepadOriginalRotation, 0.5f).OnComplete(() =>
|
||||||
@@ -159,7 +159,18 @@ public class CafeWaiterNPC : NPCController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool IsPlayerAnswerPositive(string playerText)
|
||||||
|
{
|
||||||
|
string lower = playerText.ToLower();
|
||||||
|
return lower.Contains("ye")
|
||||||
|
|| lower.Contains("correct")
|
||||||
|
|| lower.Contains("right")
|
||||||
|
|| lower.Contains("sure")
|
||||||
|
|| lower.Contains("of course")
|
||||||
|
|| lower.Contains("okay")
|
||||||
|
|| lower.Contains("yup")
|
||||||
|
|| lower.Contains("affirmative");
|
||||||
|
}
|
||||||
|
|
||||||
private async void BringFood()
|
private async void BringFood()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user