diff --git a/Assets/Prefabs/Level chunks/level chunk 1.prefab b/Assets/Prefabs/Level chunks/level chunk 1.prefab index ed82881..cb2f915 100644 --- a/Assets/Prefabs/Level chunks/level chunk 1.prefab +++ b/Assets/Prefabs/Level chunks/level chunk 1.prefab @@ -57,6 +57,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 6700590699684103004, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_RootOrder value: 3 @@ -71,7 +75,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_LocalPosition.z - value: 16 + value: 3.23 objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_LocalRotation.w @@ -105,6 +109,14 @@ PrefabInstance: propertyPath: m_Name value: Platform_Green (1) objectReference: {fileID: 0} + - target: {fileID: 8768991388683709947, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8985668614484660023, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} --- !u!4 &8159030079106431656 stripped @@ -119,6 +131,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 895973868891539841, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} propertyPath: m_RootOrder value: 2 @@ -133,7 +149,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} propertyPath: m_LocalPosition.z - value: 9.5 + value: -3.27 objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} propertyPath: m_LocalRotation.w @@ -167,6 +183,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Red objectReference: {fileID: 0} + - target: {fileID: 8768991388683709947, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} --- !u!4 &6439541331354970091 stripped @@ -181,6 +201,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 6700590699684103004, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_RootOrder value: 0 @@ -195,7 +219,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_LocalPosition.z - value: 3 + value: -9.77 objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_LocalRotation.w @@ -229,6 +253,14 @@ PrefabInstance: propertyPath: m_Name value: Platform_Green objectReference: {fileID: 0} + - target: {fileID: 8768991388683709947, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8985668614484660023, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} --- !u!4 &6278982007975411300 stripped @@ -243,6 +275,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 5 @@ -257,7 +293,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 22.5 + value: 9.73 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -291,6 +327,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (1) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &7790564154413810187 stripped @@ -305,6 +345,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 4 @@ -319,7 +363,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 22.5 + value: 9.73 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -353,6 +397,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &1040346109523527735 stripped @@ -367,6 +415,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 3142872867857024349, guid: 97d4c453fb5affa448968cb5ce9ca2f4, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 97d4c453fb5affa448968cb5ce9ca2f4, type: 3} propertyPath: m_RootOrder value: 1 @@ -381,7 +433,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 97d4c453fb5affa448968cb5ce9ca2f4, type: 3} propertyPath: m_LocalPosition.z - value: 9 + value: -3.77 objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 97d4c453fb5affa448968cb5ce9ca2f4, type: 3} propertyPath: m_LocalRotation.w @@ -415,6 +467,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Blue objectReference: {fileID: 0} + - target: {fileID: 8768991388683709947, guid: 97d4c453fb5affa448968cb5ce9ca2f4, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 97d4c453fb5affa448968cb5ce9ca2f4, type: 3} --- !u!4 &2864820289427369667 stripped diff --git a/Assets/Prefabs/Level chunks/level chunk 2.prefab b/Assets/Prefabs/Level chunks/level chunk 2.prefab index 9b5b9cf..a05331b 100644 --- a/Assets/Prefabs/Level chunks/level chunk 2.prefab +++ b/Assets/Prefabs/Level chunks/level chunk 2.prefab @@ -57,6 +57,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 895973868891539841, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} propertyPath: m_RootOrder value: 0 @@ -71,7 +75,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} propertyPath: m_LocalPosition.z - value: 3 + value: -12.02 objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} propertyPath: m_LocalRotation.w @@ -105,6 +109,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Red objectReference: {fileID: 0} + - target: {fileID: 8768991388683709947, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 32d2ba4971e4c7e4ab98a1f9c37dcffc, type: 3} --- !u!4 &6439541331354970091 stripped @@ -119,6 +127,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 2 @@ -133,7 +145,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 15 + value: -0.01999998 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -167,6 +179,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (1) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &7790564154413810187 stripped @@ -181,6 +197,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 6700590699684103004, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_RootOrder value: 5 @@ -195,7 +215,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_LocalPosition.z - value: 27 + value: 11.98 objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} propertyPath: m_LocalRotation.w @@ -229,6 +249,14 @@ PrefabInstance: propertyPath: m_Name value: Platform_Green objectReference: {fileID: 0} + - target: {fileID: 8768991388683709947, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8985668614484660023, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 99c4e582c7358f346ab00dae4ae956f9, type: 3} --- !u!4 &4857125465955625321 stripped @@ -243,6 +271,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 1 @@ -257,7 +289,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 10 + value: -5.02 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -291,6 +323,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &1040346109523527735 stripped @@ -305,6 +341,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 3 @@ -319,7 +359,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 15 + value: -0.01999998 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -353,6 +393,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (3) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &407423171007392361 stripped @@ -367,6 +411,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 2842152604392964614, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} propertyPath: m_RootOrder value: 4 @@ -381,7 +429,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} propertyPath: m_LocalPosition.z - value: 20 + value: 4.98 objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} propertyPath: m_LocalRotation.w @@ -415,6 +463,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_yellow objectReference: {fileID: 0} + - target: {fileID: 8768991388683709947, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} --- !u!4 &2651812950409795929 stripped diff --git a/Assets/Prefabs/Level chunks/level chunk 3.prefab b/Assets/Prefabs/Level chunks/level chunk 3.prefab index ac6be4f..e659b3f 100644 --- a/Assets/Prefabs/Level chunks/level chunk 3.prefab +++ b/Assets/Prefabs/Level chunks/level chunk 3.prefab @@ -64,6 +64,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 4 @@ -78,7 +82,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 22.35 + value: 7.3450003 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -112,6 +116,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (4) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &5616256210412566227 stripped @@ -126,6 +134,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 8 @@ -140,7 +152,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 13.999998 + value: -1.005002 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -174,6 +186,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (7) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &4854297208921162416 stripped @@ -188,6 +204,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 5 @@ -202,7 +222,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 18 + value: 2.995 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -236,6 +256,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (2) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &8184618571655723606 stripped @@ -250,6 +274,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 1 @@ -264,7 +292,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 18 + value: 2.995 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -298,6 +326,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (1) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &7790564154413810187 stripped @@ -312,6 +344,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 12 @@ -326,7 +362,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 27 + value: 11.995 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -360,6 +396,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (11) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &7194464121512601190 stripped @@ -374,6 +414,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 6 @@ -388,7 +432,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 18.349993 + value: 3.3449926 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -422,6 +466,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (5) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &1407941096558248033 stripped @@ -436,6 +484,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 0 @@ -450,7 +502,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 10 + value: -5.005 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -484,6 +536,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &1040346109523527735 stripped @@ -498,6 +554,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 2 @@ -512,7 +572,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 14 + value: -1.0050001 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -546,6 +606,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (3) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &407423171007392361 stripped @@ -560,6 +624,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 11 @@ -574,7 +642,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 27 + value: 11.995 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -608,6 +676,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (10) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &50877595027363577 stripped @@ -622,6 +694,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 2842152604392964614, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} propertyPath: m_RootOrder value: 3 @@ -636,7 +712,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} propertyPath: m_LocalPosition.z - value: 3 + value: -12.005 objectReference: {fileID: 0} - target: {fileID: 8768991388683709944, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} propertyPath: m_LocalRotation.w @@ -670,6 +746,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_yellow objectReference: {fileID: 0} + - target: {fileID: 8768991388683709947, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1e3f34788e0cb3f49a0bef285d5b059a, type: 3} --- !u!4 &2651812950409795929 stripped @@ -684,6 +764,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 7 @@ -698,7 +782,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 22.349998 + value: 7.3449984 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -732,6 +816,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (6) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &140623672219290026 stripped @@ -746,6 +834,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 10 @@ -760,7 +852,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 10 + value: -5.005 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -794,6 +886,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (9) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &3785774610333296001 stripped @@ -808,6 +904,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 2957714535164430066} m_Modifications: + - target: {fileID: 1092131798630268376, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_RootOrder value: 9 @@ -822,7 +922,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalPosition.z - value: 18.35 + value: 3.3450003 objectReference: {fileID: 0} - target: {fileID: 6650340373999088089, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} propertyPath: m_LocalRotation.w @@ -856,6 +956,10 @@ PrefabInstance: propertyPath: m_Name value: Platform_Orange (8) objectReference: {fileID: 0} + - target: {fileID: 6650340373999088090, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 76b3e3235b07ca04f91c9b020603e1dd, type: 3} --- !u!4 &2585169600249500071 stripped diff --git a/Assets/Prefabs/Player.prefab b/Assets/Prefabs/Player.prefab index 991bed2..0ac5662 100644 --- a/Assets/Prefabs/Player.prefab +++ b/Assets/Prefabs/Player.prefab @@ -1638,6 +1638,7 @@ MonoBehaviour: audioClips: - {fileID: 8300000, guid: 5e15f53ccc08c4e4496e13306a9e4743, type: 3} - {fileID: 8300000, guid: 049628ae43735224990d9bcea2f744ad, type: 3} + - {fileID: 8300000, guid: 227c760da48796046b26b76b3706319b, type: 3} --- !u!65 &1172583624 BoxCollider: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/platforms/Platform_empty.prefab b/Assets/Prefabs/platforms/Platform_empty.prefab index f9debad..9d79ad5 100644 --- a/Assets/Prefabs/platforms/Platform_empty.prefab +++ b/Assets/Prefabs/platforms/Platform_empty.prefab @@ -1,5 +1,79 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: +--- !u!1 &1692547635526486916 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1979594279159666205} + - component: {fileID: 7075058657631980347} + m_Layer: 0 + m_Name: Renderer + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1979594279159666205 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1692547635526486916} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 8768991388683709944} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &7075058657631980347 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1692547635526486916} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} --- !u!1 &8768991388683709947 GameObject: m_ObjectHideFlags: 0 @@ -11,6 +85,7 @@ GameObject: - component: {fileID: 8768991388683709944} - component: {fileID: -6007548423464394236} - component: {fileID: 5458493816772439993} + - component: {fileID: 6374445660222366211} m_Layer: 0 m_Name: Platform_empty m_TagString: platform @@ -29,7 +104,8 @@ Transform: m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] + m_Children: + - {fileID: 1979594279159666205} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -53,3 +129,45 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 61dae18984b7ff147ab1d77fb817687a, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!23 &6374445660222366211 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8768991388683709947} + m_Enabled: 0 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} diff --git a/Assets/Scripts/ProceduralGeneration.cs b/Assets/Scripts/ProceduralGeneration.cs index 6cfd50d..54b5621 100644 --- a/Assets/Scripts/ProceduralGeneration.cs +++ b/Assets/Scripts/ProceduralGeneration.cs @@ -22,7 +22,7 @@ public class ProceduralGeneration : MonoBehaviour if (renderers.Length > 0) { Bounds bounds = renderers[0].bounds; - for (int i = 0; i < renderers.Length; i++) + for (int i = 1; i < renderers.Length; i++) { bounds.Encapsulate(renderers[i].bounds); } @@ -37,10 +37,8 @@ public class ProceduralGeneration : MonoBehaviour GameObject drawPlatform(GameObject lastObject, GameObject objToSpawn, GameObject parentLevelObject) { Bounds bounds = this.getPrefabBounds(lastObject); - Bounds b = new Bounds(bounds.center, bounds.size); - - Vector3 nextBlockLocation = new Vector3(lastObject.transform.position.x, lastObject.transform.position.y, lastObject.transform.position.z + b.size.z); - + Bounds b = this.getPrefabBounds(objToSpawn); + Vector3 nextBlockLocation = new Vector3(lastObject.transform.position.x, lastObject.transform.position.y, lastObject.transform.position.z + bounds.extents.z + b.extents.z); GameObject newObject = Instantiate(objToSpawn, nextBlockLocation, (Quaternion.identity)); newObject.transform.parent = parentLevelObject.transform; return newObject; @@ -49,7 +47,7 @@ public class ProceduralGeneration : MonoBehaviour List spawnSpiralOfPlatforms(GameObject lastObject, GameObject objToSpawn, GameObject parentLevelObject) { // configuration: - float horizontalDistancePerPlatform = (float)Random.Range(0.5f, 2.0f); ; + float horizontalDistancePerPlatform = (float)Random.Range(0.5f, 2.0f); List levelBlocksSpawnTemp = new List(); // Debug.Log("Building LOOP"); @@ -59,9 +57,9 @@ public class ProceduralGeneration : MonoBehaviour float angle = 360f / (float)pieceCount; Bounds bounds = this.getPrefabBounds(lastObject); - Bounds b = new Bounds(bounds.center, bounds.size); + Bounds b = this.getPrefabBounds(objToSpawn); - Vector3 centerPoint = new Vector3(lastObject.transform.position.x, (lastObject.transform.position.y + radius), lastObject.transform.position.z + b.size.z); + Vector3 centerPoint = new Vector3(lastObject.transform.position.x, (lastObject.transform.position.y + radius), lastObject.transform.position.z + (lastObject.name.Contains("chunk") ? bounds.size.z : bounds.extents.z) + b.extents.z); float heightOffset = radius; @@ -71,7 +69,7 @@ public class ProceduralGeneration : MonoBehaviour Vector3 direction = rotation * Vector3.down; Vector3 position = (lastObject.transform.position + (direction * radius)); - GameObject newObject = Instantiate(objToSpawn, new Vector3(position.x, position.y + heightOffset, position.z + (float)(i * horizontalDistancePerPlatform)), rotation); + GameObject newObject = Instantiate(objToSpawn, new Vector3(position.x, position.y + heightOffset, position.z + (float)(i * horizontalDistancePerPlatform) + (lastObject.name.Contains("chunk") ? bounds.extents.z : 0f)), rotation); newObject.transform.parent = parentLevelObject.transform; levelBlocksSpawnTemp.Add(newObject); } diff --git a/Assets/Scripts/gizmoManager.cs b/Assets/Scripts/gizmoManager.cs index 82e7bcc..e0f328b 100644 --- a/Assets/Scripts/gizmoManager.cs +++ b/Assets/Scripts/gizmoManager.cs @@ -20,7 +20,7 @@ public class gizmoManager : MonoBehaviour if (renderers.Length > 0) { Bounds bounds = renderers[0].bounds; - for (int i = 1, ni = renderers.Length; i < ni; i++) + for (int i = 0, ni = renderers.Length; i < ni; i++) { bounds.Encapsulate(renderers[i].bounds); } diff --git a/Assets/Sounds/BiPolarThemeFast02.mp3 b/Assets/Sounds/BiPolarThemeFast02.mp3 new file mode 100644 index 0000000..6010083 Binary files /dev/null and b/Assets/Sounds/BiPolarThemeFast02.mp3 differ diff --git a/Assets/Sounds/BiPolarThemeFast02.mp3.meta b/Assets/Sounds/BiPolarThemeFast02.mp3.meta new file mode 100644 index 0000000..d53428b --- /dev/null +++ b/Assets/Sounds/BiPolarThemeFast02.mp3.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 227c760da48796046b26b76b3706319b +AudioImporter: + externalObjects: {} + serializedVersion: 6 + defaultSettings: + loadType: 0 + sampleRateSetting: 0 + sampleRateOverride: 44100 + compressionFormat: 1 + quality: 1 + conversionMode: 0 + platformSettingOverrides: {} + forceToMono: 0 + normalize: 1 + preloadAudioData: 1 + loadInBackground: 0 + ambisonic: 0 + 3D: 1 + userData: + assetBundleName: + assetBundleVariant: