1
0
forked from cgvr/DeltaVR

quest marker that floats up and down and turns towards player

This commit is contained in:
2026-02-12 15:23:54 +02:00
parent d0b909a1ab
commit 3d804dfdaf
8 changed files with 442 additions and 9 deletions

View File

@@ -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();
}
}