1
0
forked from cgvr/DeltaVR

replaced demo boxes with microphone stand and buttons, in archery range

This commit is contained in:
2026-01-10 17:00:45 +02:00
parent 46b1c7e1de
commit ce75a1f343
39 changed files with 2631 additions and 141 deletions

View File

@@ -28,7 +28,7 @@ public class ArcheryRange : NetworkBehaviour
public float roundLength = 60f;
public float targetSpawnTime = 3f;
public ModelGenerationBox modelGenerationBox;
public ArcheryRangeModelGenerationController modelGenerationController;
public KeyboardManager keyboardManager;
public NPCController npcController;
@@ -139,14 +139,14 @@ public class ArcheryRange : NetworkBehaviour
private ArcheryTarget SpawnTarget(Vector3 randomPos)
{
GameObject targetObject;
if (modelGenerationBox.GeneratedModel == null)
if (modelGenerationController.GeneratedModel == null)
{
// spawn default UFO
targetObject = Instantiate(targetPrefab, randomPos, Quaternion.identity, null);
} else
{
// spawn generated model
targetObject = Instantiate(modelGenerationBox.GeneratedModel, randomPos, Quaternion.identity, null);
targetObject = Instantiate(modelGenerationController.GeneratedModel, randomPos, Quaternion.identity, null);
InitializeArcherytargetObject(targetObject);
}