forked from cgvr/DeltaVR
quest marker that floats up and down and turns towards player
This commit is contained in:
@@ -103,12 +103,6 @@ public class ShapeDetectionNPC : NPCController
|
||||
|
||||
private async void OnPlayerPressedKeyboard()
|
||||
{
|
||||
if (state == 3)
|
||||
{
|
||||
SpeakVoiceLine(4);
|
||||
state = 4;
|
||||
}
|
||||
|
||||
string inputPrompt = microphoneStand.GetTextOutput();
|
||||
byte[] imageBytes = await InvokeAiClient.Instance.GenerateImage(inputPrompt);
|
||||
GeneratedTexture = ModelGenerationUtils.CreateTexture(imageBytes);
|
||||
@@ -116,8 +110,10 @@ public class ShapeDetectionNPC : NPCController
|
||||
imageDisplay.sprite = sprite;
|
||||
|
||||
imageGenerationButton.Deactivate();
|
||||
if (state == 4)
|
||||
if (state == 3)
|
||||
{
|
||||
SpeakVoiceLine(4);
|
||||
state = 4;
|
||||
modelGenerationButton.Deactivate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user