Tower of fun
parent
51e289fe9b
commit
8ff3b59c92
|
@ -33,6 +33,9 @@ public class SampleVirtualFrames : MonoBehaviour
|
||||||
|
|
||||||
public SimpleResizable _tablePrefab;
|
public SimpleResizable _tablePrefab;
|
||||||
|
|
||||||
|
private bool stuffPlaced = false;
|
||||||
|
public GameObject _cube;
|
||||||
|
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
MarcsWebLogger.Log("SampleVirtualFrames::Awake()");
|
MarcsWebLogger.Log("SampleVirtualFrames::Awake()");
|
||||||
|
@ -68,6 +71,13 @@ public class SampleVirtualFrames : MonoBehaviour
|
||||||
dimensions += prefab.GetComponent<ResizablePadding>().dimensionPadding;
|
dimensions += prefab.GetComponent<ResizablePadding>().dimensionPadding;
|
||||||
}
|
}
|
||||||
resizer.CreateResizedObject(dimensions, sceneAnchors[i].gameObject, prefab);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0060eac09cae0f53086de177fdede780
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -134,7 +134,7 @@ Rigidbody:
|
||||||
m_IsKinematic: 1
|
m_IsKinematic: 1
|
||||||
m_Interpolate: 0
|
m_Interpolate: 0
|
||||||
m_Constraints: 0
|
m_Constraints: 0
|
||||||
m_CollisionDetection: 1
|
m_CollisionDetection: 2
|
||||||
--- !u!114 &7232826476857652024
|
--- !u!114 &7232826476857652024
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -2759,6 +2759,7 @@ MonoBehaviour:
|
||||||
_doorPrefab: {fileID: 0}
|
_doorPrefab: {fileID: 0}
|
||||||
_windowPrefab: {fileID: 0}
|
_windowPrefab: {fileID: 0}
|
||||||
_tablePrefab: {fileID: 7232826476857652024, guid: 8af50d88fb696eaa19d324d7c74e8c0b, type: 3}
|
_tablePrefab: {fileID: 7232826476857652024, guid: 8af50d88fb696eaa19d324d7c74e8c0b, type: 3}
|
||||||
|
_cube: {fileID: 9146634523021991380, guid: 0060eac09cae0f53086de177fdede780, type: 3}
|
||||||
--- !u!1 &835441841
|
--- !u!1 &835441841
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -139,6 +139,8 @@ PlayerSettings:
|
||||||
bundleVersion: 0.1
|
bundleVersion: 0.1
|
||||||
preloadedAssets:
|
preloadedAssets:
|
||||||
- {fileID: 11400000, guid: 29d72bf9f28086693968cedbdc8f08cd, type: 2}
|
- {fileID: 11400000, guid: 29d72bf9f28086693968cedbdc8f08cd, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 541751c4fa90967d68ef779a22ee43f3, type: 2}
|
||||||
|
- {fileID: -3127938587913570544, guid: 8eb28e39ec717d0799039f01965f0533, type: 2}
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
m_HolographicPauseOnTrackingLoss: 1
|
m_HolographicPauseOnTrackingLoss: 1
|
||||||
|
|
Loading…
Reference in New Issue