forked from cgvr/DeltaVR
replaced demo boxes with microphone stand and buttons, in archery range
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user