Update OVRSceneManagerScript.cs
This commit is contained in:
		
							parent
							
								
									8ff3b59c92
								
							
						
					
					
						commit
						44668f235c
					
				| @ -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) | ||||||
|                     { |                     { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 marcgauch
						marcgauch