Put-stuff-on-table #4
@ -33,9 +33,9 @@ public class SampleVirtualFrames : MonoBehaviour
 | 
			
		||||
 | 
			
		||||
    public SimpleResizable _tablePrefab;
 | 
			
		||||
 | 
			
		||||
    private bool stuffPlaced = false;
 | 
			
		||||
    public GameObject _cube;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    void Awake()
 | 
			
		||||
    {
 | 
			
		||||
        MarcsWebLogger.Log("SampleVirtualFrames::Awake()");
 | 
			
		||||
@ -73,11 +73,8 @@ public class SampleVirtualFrames : MonoBehaviour
 | 
			
		||||
                        resizer.CreateResizedObject(dimensions, sceneAnchors[i].gameObject, prefab);
 | 
			
		||||
 | 
			
		||||
                        // 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));
 | 
			
		||||
                            stuffPlaced = true;
 | 
			
		||||
                        }
 | 
			
		||||
                        Instantiate(_cube, sceneAnchors[i].gameObject.transform.position + new Vector3(0, 0, 0.3f), Quaternion.Euler(0, 90, 0));
 | 
			
		||||
 | 
			
		||||
                    }
 | 
			
		||||
                    catch (Exception e)
 | 
			
		||||
                    {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user