Tower of fun

This commit is contained in:
marcgauch committed 2024-01-05 17:35:57 +01:00
1 parent 51e289fe9b
commit 8ff3b59c92
8 files changed
+1167 -1

No files matched your search

+10
View File
@@ -33,6 +33,9 @@ public class SampleVirtualFrames : MonoBehaviour
public SimpleResizable _tablePrefab;
private bool stuffPlaced = false;
public GameObject _cube;
void Awake()
{
MarcsWebLogger.Log("SampleVirtualFrames::Awake()");
@@ -68,6 +71,13 @@ public class SampleVirtualFrames : MonoBehaviour
dimensions += prefab.GetComponent<ResizablePadding>().dimensionPadding;
}
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)
{
File renamed without changes.
File renamed without changes.
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0060eac09cae0f53086de177fdede780
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -134,7 +134,7 @@ Rigidbody:
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 1
m_CollisionDetection: 2
--- !u!114 &7232826476857652024
MonoBehaviour:
m_ObjectHideFlags: 0
+1
View File
@@ -2759,6 +2759,7 @@ MonoBehaviour:
_doorPrefab: {fileID: 0}
_windowPrefab: {fileID: 0}
_tablePrefab: {fileID: 7232826476857652024, guid: 8af50d88fb696eaa19d324d7c74e8c0b, type: 3}
_cube: {fileID: 9146634523021991380, guid: 0060eac09cae0f53086de177fdede780, type: 3}
--- !u!1 &835441841
GameObject:
m_ObjectHideFlags: 0