1
0
forked from cgvr/DeltaVR

shape scanner improvements: add handle, destroy scannable object on completion, correctly detect when new object is generated

This commit is contained in:
2026-01-27 18:38:20 +02:00
parent 77fc43bebd
commit af27bb0230
7 changed files with 299 additions and 30 deletions

View File

@@ -36,7 +36,10 @@ public class MicrophoneStand : MonoBehaviour
microphoneOffStatus.SetActive(false);
microphoneOnStatus.SetActive(true);
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.RadioButton, gameObject);
npcController.SpeakVoiceLine(1);
if (npcController != null)
{
npcController.SpeakVoiceLine(1);
}
fmodWhisperBridge.ActivateRecording();
}
}
@@ -49,7 +52,10 @@ public class MicrophoneStand : MonoBehaviour
microphoneOffStatus.SetActive(true);
microphoneOnStatus.SetActive(false);
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.RadioButton, gameObject);
npcController.SpeakVoiceLine(2);
if (npcController != null)
{
npcController.SpeakVoiceLine(2);
}
fmodWhisperBridge.DeactivateRecording();
}
}