Put-stuff-on-table #4

Merged
gauchmarc merged 8 commits from Put-stuff-on-table into main 2024-01-07 09:44:11 +01:00
Showing only changes of commit 44668f235c - Show all commits

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)
{ {