Update OVRSceneManagerScript.cs

pull/4/head
marcgauch 2024-01-05 17:37:25 +01:00
parent 8ff3b59c92
commit 44668f235c
1 changed files with 3 additions and 6 deletions

View File

@ -33,9 +33,9 @@ public class SampleVirtualFrames : MonoBehaviour
public SimpleResizable _tablePrefab; public SimpleResizable _tablePrefab;
private bool stuffPlaced = false;
public GameObject _cube; public GameObject _cube;
void Awake() void Awake()
{ {
MarcsWebLogger.Log("SampleVirtualFrames::Awake()"); MarcsWebLogger.Log("SampleVirtualFrames::Awake()");
@ -73,11 +73,8 @@ public class SampleVirtualFrames : MonoBehaviour
resizer.CreateResizedObject(dimensions, sceneAnchors[i].gameObject, prefab); resizer.CreateResizedObject(dimensions, sceneAnchors[i].gameObject, prefab);
// now place the cubes // now place the cubes
if (stuffPlaced == false) Instantiate(_cube, sceneAnchors[i].gameObject.transform.position + new Vector3(0, 0, 0.3f), Quaternion.Euler(0, 90, 0));
{
Instantiate(_cube, sceneAnchors[i].gameObject.transform.position + new Vector3(0, 0, 0.3f), Quaternion.Euler(0, 90, 0));
stuffPlaced = true;
}
} }
catch (Exception e) catch (Exception e)
{ {