diff options
-rw-r--r-- | nGJ2019/Assets/Prefabs/CaveWalls.prefab (renamed from nGJ2019/Assets/Prefabs/Obstacles.prefab) | 14 | ||||
-rw-r--r-- | nGJ2019/Assets/Prefabs/CaveWalls.prefab.meta (renamed from nGJ2019/Assets/Prefabs/Obstacles.prefab.meta) | 0 | ||||
-rw-r--r-- | nGJ2019/Assets/Prefabs/NarrowPassage.prefab | 374 | ||||
-rw-r--r-- | nGJ2019/Assets/Prefabs/NarrowPassage.prefab.meta | 7 | ||||
-rw-r--r-- | nGJ2019/Assets/Prefabs/ObstacleRockBottom.prefab | 358 | ||||
-rw-r--r-- | nGJ2019/Assets/Prefabs/ObstacleRockBottom.prefab.meta | 7 | ||||
-rw-r--r-- | nGJ2019/Assets/Prefabs/ObstacleRockTop.prefab | 514 | ||||
-rw-r--r-- | nGJ2019/Assets/Prefabs/ObstacleRockTop.prefab.meta | 7 | ||||
-rw-r--r-- | nGJ2019/Assets/Scenes/Marcin_sandbox.unity | 14 | ||||
-rw-r--r-- | nGJ2019/Assets/Scripts/DragonMovement.cs | 2 | ||||
-rw-r--r-- | nGJ2019/Assets/Scripts/ObstacleSpawner.cs | 91 | ||||
-rw-r--r-- | nGJ2019/Assets/Scripts/ObstacleType.cs | 2 |
12 files changed, 1339 insertions, 51 deletions
diff --git a/nGJ2019/Assets/Prefabs/Obstacles.prefab b/nGJ2019/Assets/Prefabs/CaveWalls.prefab index b5395c9..57cc21b 100644 --- a/nGJ2019/Assets/Prefabs/Obstacles.prefab +++ b/nGJ2019/Assets/Prefabs/CaveWalls.prefab @@ -10,7 +10,7 @@ GameObject: m_Component: - component: {fileID: 1998900778231223133} m_Layer: 0 - m_Name: Obstacles + m_Name: CaveWalls m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -42,7 +42,7 @@ BoxCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7538015035249639830} m_Material: {fileID: 0} - m_IsTrigger: 0 + m_IsTrigger: 1 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 15.39, y: 5.46, z: 1} @@ -55,7 +55,7 @@ BoxCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7538015035695901050} m_Material: {fileID: 0} - m_IsTrigger: 0 + m_IsTrigger: 1 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 14.07, y: 4.32, z: 1} @@ -80,7 +80,7 @@ PrefabInstance: - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} propertyPath: m_LocalPosition.y - value: 2.63 + value: 4.74 objectReference: {fileID: 0} - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} @@ -155,7 +155,7 @@ PrefabInstance: - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, type: 3} propertyPath: m_LocalPosition.y - value: -0.5994234 + value: -1.39 objectReference: {fileID: 0} - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, type: 3} @@ -230,7 +230,7 @@ PrefabInstance: - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} propertyPath: m_LocalPosition.y - value: 2.63 + value: 4.74 objectReference: {fileID: 0} - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} @@ -311,7 +311,7 @@ PrefabInstance: - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, type: 3} propertyPath: m_LocalPosition.y - value: -0.5994234 + value: -1.39 objectReference: {fileID: 0} - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, type: 3} diff --git a/nGJ2019/Assets/Prefabs/Obstacles.prefab.meta b/nGJ2019/Assets/Prefabs/CaveWalls.prefab.meta index 34071ad..34071ad 100644 --- a/nGJ2019/Assets/Prefabs/Obstacles.prefab.meta +++ b/nGJ2019/Assets/Prefabs/CaveWalls.prefab.meta diff --git a/nGJ2019/Assets/Prefabs/NarrowPassage.prefab b/nGJ2019/Assets/Prefabs/NarrowPassage.prefab new file mode 100644 index 0000000..214eb1a --- /dev/null +++ b/nGJ2019/Assets/Prefabs/NarrowPassage.prefab @@ -0,0 +1,374 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &1998900778231223134 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1998900778231223133} + m_Layer: 0 + m_Name: NarrowPassage + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1998900778231223133 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1998900778231223134} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -7.886415, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 6829481667242832773} + - {fileID: 6829481666799721321} + - {fileID: 6829481665498963961} + - {fileID: 6829481666739576186} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!65 &7350926945773242645 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7538015035249639830} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 15.39, y: 5.46, z: 1} + m_Center: {x: 4.2, y: -3.84, z: 0} +--- !u!65 &2761854514729097118 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7538015035695901050} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 14.07, y: 4.32, z: 1} + m_Center: {x: 3.2, y: 0.96, z: 0} +--- !u!1001 &1998900776986113251 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 1998900778231223133} + m_Modifications: + - target: {fileID: -927199367670048503, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_Name + value: obstacle_rock_top (1) + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalPosition.x + value: 8.09 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalPosition.y + value: 3 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} +--- !u!4 &6829481665498963961 stripped +Transform: + m_CorrespondingSourceObject: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + m_PrefabInstance: {fileID: 1998900776986113251} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &1998900778229020256 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 1998900778231223133} + m_Modifications: + - target: {fileID: -927199367670048503, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_Name + value: obstacle_rock_bottom_1 (1) + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalPosition.x + value: 7.44 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: fbb1d264bae087340a30a49b9b9e0148, type: 3} +--- !u!4 &6829481666739576186 stripped +Transform: + m_CorrespondingSourceObject: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + m_PrefabInstance: {fileID: 1998900778229020256} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &1998900778239684723 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 1998900778231223133} + m_Modifications: + - target: {fileID: -927199367670048503, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_Name + value: obstacle_rock_top + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalPosition.x + value: 1.830543 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalPosition.y + value: 3 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} +--- !u!1 &7538015035695901050 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: -927199367670048503, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + m_PrefabInstance: {fileID: 1998900778239684723} + m_PrefabAsset: {fileID: 0} +--- !u!4 &6829481666799721321 stripped +Transform: + m_CorrespondingSourceObject: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, + type: 3} + m_PrefabInstance: {fileID: 1998900778239684723} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &1998900778732132511 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 1998900778231223133} + m_Modifications: + - target: {fileID: -927199367670048503, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_Name + value: obstacle_rock_bottom_1 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalPosition.x + value: 1.1761003 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: fbb1d264bae087340a30a49b9b9e0148, type: 3} +--- !u!1 &7538015035249639830 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: -927199367670048503, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + m_PrefabInstance: {fileID: 1998900778732132511} + m_PrefabAsset: {fileID: 0} +--- !u!4 &6829481667242832773 stripped +Transform: + m_CorrespondingSourceObject: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, + type: 3} + m_PrefabInstance: {fileID: 1998900778732132511} + m_PrefabAsset: {fileID: 0} diff --git a/nGJ2019/Assets/Prefabs/NarrowPassage.prefab.meta b/nGJ2019/Assets/Prefabs/NarrowPassage.prefab.meta new file mode 100644 index 0000000..b917369 --- /dev/null +++ b/nGJ2019/Assets/Prefabs/NarrowPassage.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ce339cccf24f74448af698eb997a3d95 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/nGJ2019/Assets/Prefabs/ObstacleRockBottom.prefab b/nGJ2019/Assets/Prefabs/ObstacleRockBottom.prefab new file mode 100644 index 0000000..a9498c0 --- /dev/null +++ b/nGJ2019/Assets/Prefabs/ObstacleRockBottom.prefab @@ -0,0 +1,358 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &264553704504758048 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3886813090550119731} + - component: {fileID: 5594498704066045325} + m_Layer: 0 + m_Name: ObstacleRockBottom + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3886813090550119731 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 264553704504758048} + 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_Children: + - {fileID: 1783991104452212059} + - {fileID: 7182578948371701205} + - {fileID: 5340571688971381867} + - {fileID: 325596468208103554} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!65 &5594498704066045325 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 264553704504758048} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 7.15, y: 4.08, z: 1} + m_Center: {x: 0.27, y: 0, z: 0} +--- !u!1 &1796633522054151795 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5340571688971381867} + - component: {fileID: 4966203238611919336} + - component: {fileID: 8865292684483397932} + m_Layer: 0 + m_Name: GeoSphere046 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5340571688971381867 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1796633522054151795} + m_LocalRotation: {x: -0.6502259, y: -0.27786025, z: 0.27786025, w: 0.6502259} + m_LocalPosition: {x: -1.2725244, y: -0.19650899, z: -1.1814119} + m_LocalScale: {x: 15.622416, y: 10.227556, z: 19.083408} + m_Children: [] + m_Father: {fileID: 3886813090550119731} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &4966203238611919336 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1796633522054151795} + m_Mesh: {fileID: 3715129029982280935, guid: 699efb5396883984c9644ac6abf6fcb1, type: 3} +--- !u!23 &8865292684483397932 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1796633522054151795} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 699efb5396883984c9644ac6abf6fcb1, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 +--- !u!1 &2566898842538847990 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 325596468208103554} + - component: {fileID: 3601673712557021576} + - component: {fileID: 2243120406082806243} + m_Layer: 0 + m_Name: GeoSphere048 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &325596468208103554 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2566898842538847990} + m_LocalRotation: {x: -0.70608836, y: 0.08171628, z: 0.17772274, w: 0.68057054} + m_LocalPosition: {x: -1.0205718, y: 0.8037474, z: -1.1814119} + m_LocalScale: {x: 11.35994, y: 10.455775, z: 11.94453} + m_Children: [] + m_Father: {fileID: 3886813090550119731} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3601673712557021576 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2566898842538847990} + m_Mesh: {fileID: -7007799811885715339, guid: 699efb5396883984c9644ac6abf6fcb1, type: 3} +--- !u!23 &2243120406082806243 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2566898842538847990} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 699efb5396883984c9644ac6abf6fcb1, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 +--- !u!1 &3511217539225559925 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7182578948371701205} + - component: {fileID: 9046405768015209605} + - component: {fileID: 2728226245911398303} + m_Layer: 0 + m_Name: GeoSphere044 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7182578948371701205 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3511217539225559925} + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068} + m_LocalPosition: {x: 0.4905525, y: -0.19650897, z: -1.1814119} + m_LocalScale: {x: 15.446354, y: 13.248141, z: 12.951603} + m_Children: [] + m_Father: {fileID: 3886813090550119731} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &9046405768015209605 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3511217539225559925} + m_Mesh: {fileID: -3620254248254834955, guid: 699efb5396883984c9644ac6abf6fcb1, type: 3} +--- !u!23 &2728226245911398303 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3511217539225559925} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 699efb5396883984c9644ac6abf6fcb1, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 +--- !u!1 &8121112999390554786 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1783991104452212059} + - component: {fileID: 6955221547527976063} + - component: {fileID: 3768997545481880427} + m_Layer: 0 + m_Name: GeoSphere016 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1783991104452212059 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8121112999390554786} + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068} + m_LocalPosition: {x: 2.53219, y: -0.19650897, z: -1.1814119} + m_LocalScale: {x: 13.202217, y: 10.227556, z: 13.202217} + m_Children: [] + m_Father: {fileID: 3886813090550119731} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &6955221547527976063 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8121112999390554786} + m_Mesh: {fileID: -6031550119859994084, guid: 699efb5396883984c9644ac6abf6fcb1, type: 3} +--- !u!23 &3768997545481880427 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8121112999390554786} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 699efb5396883984c9644ac6abf6fcb1, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 diff --git a/nGJ2019/Assets/Prefabs/ObstacleRockBottom.prefab.meta b/nGJ2019/Assets/Prefabs/ObstacleRockBottom.prefab.meta new file mode 100644 index 0000000..bdf2f41 --- /dev/null +++ b/nGJ2019/Assets/Prefabs/ObstacleRockBottom.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 61077335c23f94734a98510f8775f6c7 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/nGJ2019/Assets/Prefabs/ObstacleRockTop.prefab b/nGJ2019/Assets/Prefabs/ObstacleRockTop.prefab new file mode 100644 index 0000000..7b15e8c --- /dev/null +++ b/nGJ2019/Assets/Prefabs/ObstacleRockTop.prefab @@ -0,0 +1,514 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &2825962919672506772 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1255536267988802439} + - component: {fileID: 4652515155153534203} + m_Layer: 0 + m_Name: ObstacleRockTop + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1255536267988802439 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2825962919672506772} + 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_Children: + - {fileID: 1307601405794813495} + - {fileID: 6771697012542170487} + - {fileID: 3387183648357449922} + - {fileID: 6007173715069243983} + - {fileID: 121880072305624979} + - {fileID: 9092679216864177555} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!65 &4652515155153534203 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2825962919672506772} + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 7.55, y: 4.14, z: 1} + m_Center: {x: 0, y: 1.15, z: 0} +--- !u!1 &4820912184054354174 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 9092679216864177555} + - component: {fileID: 4046354390581153481} + - component: {fileID: 1372204683312064913} + m_Layer: 0 + m_Name: GeoSphere054 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &9092679216864177555 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4820912184054354174} + m_LocalRotation: {x: 0.7033083, y: -0.21226156, z: 0.11024933, w: 0.66943824} + m_LocalPosition: {x: -0.76218563, y: 0.6083736, z: -1.2980763} + m_LocalScale: {x: 10.919168, y: 11.938041, z: 11.009958} + m_Children: [] + m_Father: {fileID: 1255536267988802439} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &4046354390581153481 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4820912184054354174} + m_Mesh: {fileID: 4343593073968979684, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} +--- !u!23 &1372204683312064913 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4820912184054354174} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 +--- !u!1 &5547250341652612979 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6771697012542170487} + - component: {fileID: 4449134374630055654} + - component: {fileID: 3203602209050951575} + m_Layer: 0 + m_Name: GeoSphere050 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6771697012542170487 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5547250341652612979} + m_LocalRotation: {x: 0.73031443, y: 0, z: 0, w: 0.68311113} + m_LocalPosition: {x: 0.63070464, y: 1.5283135, z: -1.2365625} + m_LocalScale: {x: 14.237791, y: 15.763281, z: 11.938236} + m_Children: [] + m_Father: {fileID: 1255536267988802439} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &4449134374630055654 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5547250341652612979} + m_Mesh: {fileID: -4035491807891957044, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} +--- !u!23 &3203602209050951575 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5547250341652612979} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 +--- !u!1 &5992426339684746355 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1307601405794813495} + - component: {fileID: 8055380971477736797} + - component: {fileID: 6131396735713746970} + m_Layer: 0 + m_Name: GeoSphere049 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1307601405794813495 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5992426339684746355} + m_LocalRotation: {x: 0.73031443, y: 0, z: 0, w: 0.68311113} + m_LocalPosition: {x: 2.5125995, y: 1.5283135, z: -1.2365625} + m_LocalScale: {x: 12.169241, y: 12.169241, z: 12.169241} + m_Children: [] + m_Father: {fileID: 1255536267988802439} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &8055380971477736797 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5992426339684746355} + m_Mesh: {fileID: -4453977403093944657, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} +--- !u!23 &6131396735713746970 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5992426339684746355} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 +--- !u!1 &6389239185288358696 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3387183648357449922} + - component: {fileID: 3419756128151894665} + - component: {fileID: 2794326047831593921} + m_Layer: 0 + m_Name: GeoSphere051 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3387183648357449922 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6389239185288358696} + m_LocalRotation: {x: 0.69779503, y: -0.16292946, z: 0.045329113, w: 0.69604695} + m_LocalPosition: {x: 1.7532504, y: 0.6083736, z: -1.2980763} + m_LocalScale: {x: 16.298113, y: 13.068566, z: 19.550392} + m_Children: [] + m_Father: {fileID: 1255536267988802439} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3419756128151894665 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6389239185288358696} + m_Mesh: {fileID: -5924964905757004653, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} +--- !u!23 &2794326047831593921 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6389239185288358696} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 +--- !u!1 &7420546957335165502 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 121880072305624979} + - component: {fileID: 5137285223466565597} + - component: {fileID: 6324844312473804632} + m_Layer: 0 + m_Name: GeoSphere053 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &121880072305624979 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7420546957335165502} + m_LocalRotation: {x: 0.73031443, y: 0, z: 0, w: 0.68311113} + m_LocalPosition: {x: -2.2490244, y: 0.67004716, z: -1.2939526} + m_LocalScale: {x: 14.237791, y: 15.763281, z: 21.874363} + m_Children: [] + m_Father: {fileID: 1255536267988802439} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &5137285223466565597 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7420546957335165502} + m_Mesh: {fileID: 6485662422980988303, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} +--- !u!23 &6324844312473804632 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7420546957335165502} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 +--- !u!1 &8815244426334524682 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6007173715069243983} + - component: {fileID: 5078071182051364384} + - component: {fileID: 7977849038911364886} + m_Layer: 0 + m_Name: GeoSphere052 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6007173715069243983 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8815244426334524682} + m_LocalRotation: {x: 0.6985186, y: -0.28078136, z: -0.2749083, w: 0.5980461} + m_LocalPosition: {x: -0.99442464, y: 1.5283135, z: -1.2365625} + m_LocalScale: {x: 14.400078, y: 12.169238, z: 17.590279} + m_Children: [] + m_Father: {fileID: 1255536267988802439} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &5078071182051364384 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8815244426334524682} + m_Mesh: {fileID: -4597770394806589009, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} +--- !u!23 &7977849038911364886 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8815244426334524682} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 670224309865224971, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 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 diff --git a/nGJ2019/Assets/Prefabs/ObstacleRockTop.prefab.meta b/nGJ2019/Assets/Prefabs/ObstacleRockTop.prefab.meta new file mode 100644 index 0000000..ff92ca9 --- /dev/null +++ b/nGJ2019/Assets/Prefabs/ObstacleRockTop.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: facec2f96803c4c4b9b62c8e259a993b +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/nGJ2019/Assets/Scenes/Marcin_sandbox.unity b/nGJ2019/Assets/Scenes/Marcin_sandbox.unity index 96cbace..5bd670d 100644 --- a/nGJ2019/Assets/Scenes/Marcin_sandbox.unity +++ b/nGJ2019/Assets/Scenes/Marcin_sandbox.unity @@ -186,7 +186,7 @@ PrefabInstance: - target: {fileID: 1998900778231223134, guid: 1955f0f25a1504ef6978634b4e8986ca, type: 3} propertyPath: m_Name - value: Obstacles + value: CaveWalls1 objectReference: {fileID: 0} - target: {fileID: 1998900778231223133, guid: 1955f0f25a1504ef6978634b4e8986ca, type: 3} @@ -458,9 +458,15 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 7d21b52c27ae54df1b6a3f5da24c11e2, type: 3} m_Name: m_EditorClassIdentifier: - alfaPrefab: {fileID: 1998900778231223134, guid: 1955f0f25a1504ef6978634b4e8986ca, + caveWallsPrefab: {fileID: 1998900778231223134, guid: 1955f0f25a1504ef6978634b4e8986ca, type: 3} - betaPrefab: {fileID: 0} + rockTopPrefab: {fileID: 2825962919672506772, guid: facec2f96803c4c4b9b62c8e259a993b, + type: 3} + rockBottomPrefab: {fileID: 264553704504758048, guid: 61077335c23f94734a98510f8775f6c7, + type: 3} + narrowPassagePrefab: {fileID: 1998900778231223134, guid: ce339cccf24f74448af698eb997a3d95, + type: 3} + rockJawsPrefab: {fileID: 0} scrolling: {fileID: 202725831} spawnLine: 13.5 --- !u!1001 &1920748800 @@ -473,7 +479,7 @@ PrefabInstance: - target: {fileID: 1998900778231223134, guid: 1955f0f25a1504ef6978634b4e8986ca, type: 3} propertyPath: m_Name - value: Obstacles (1) + value: CaveWalls2 objectReference: {fileID: 0} - target: {fileID: 1998900778231223133, guid: 1955f0f25a1504ef6978634b4e8986ca, type: 3} diff --git a/nGJ2019/Assets/Scripts/DragonMovement.cs b/nGJ2019/Assets/Scripts/DragonMovement.cs index 4ba179d..9ae8fbb 100644 --- a/nGJ2019/Assets/Scripts/DragonMovement.cs +++ b/nGJ2019/Assets/Scripts/DragonMovement.cs @@ -205,7 +205,7 @@ public class DragonMovement : MonoBehaviour EnemyCollider enemy = other.gameObject.GetComponent<EnemyCollider>(); if(enemy != null) { - Debug.Log(enemy.type == ObstacleType.alfa ? "alfa hit" : "beta hit"); + Debug.Log(enemy.type == ObstacleType.narrowPassage ? "alfa hit" : "beta hit"); healthBar.health--; } } diff --git a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs index 102df97..a9d1078 100644 --- a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs +++ b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs @@ -4,47 +4,62 @@ using UnityEngine; public class ObstacleSpawner : MonoBehaviour { - private EventTimeline timeline = new EventTimeline(); - - public GameObject alfaPrefab; - public GameObject betaPrefab; - public LevelScrolling scrolling; - - public float spawnLine; - - private void spawnOnEvent(EventTimeline.SpawnEvent e) - { - GameObject prefab = null; - - if(e.type == ObstacleType.alfa) - prefab = alfaPrefab; - - if(e.type == ObstacleType.beta) - prefab = betaPrefab; - - var transformT = ((GameObject) Instantiate(prefab, new Vector3(spawnLine, e.height, 0), Quaternion.identity)).transform; - scrolling.Obstacles.Add(transformT); - } - - void Start() + private EventTimeline timeline = new EventTimeline(); + + public GameObject caveWallsPrefab, rockTopPrefab, rockBottomPrefab, narrowPassagePrefab, rockJawsPrefab; + public LevelScrolling scrolling; + + public float spawnLine; + + private void spawnOnEvent(EventTimeline.SpawnEvent e) + { + GameObject prefab = null; + + switch (e.type) { - for(int i = 0; i < 120; i += 5) - { - timeline.Add(i, 0, ObstacleType.alfa); - } - - timeline.OnSpawnEvent += spawnOnEvent; + case ObstacleType.caveWalls: + prefab = caveWallsPrefab; + break; + case ObstacleType.rockTop: + prefab = rockTopPrefab; + break; + case ObstacleType.rockBottom: + prefab = rockBottomPrefab; + break; + case ObstacleType.narrowPassage: + prefab = narrowPassagePrefab; + break; + case ObstacleType.rockJaws: + prefab = rockJawsPrefab; + break; } - // Update is called once per frame - void Update() + var transformT = ((GameObject)Instantiate(prefab, new Vector3(spawnLine, e.height, 0), Quaternion.identity)).transform; + scrolling.Obstacles.Add(transformT); + } + + void Start() + { + for (int i = 0; i < 120; i += 5) { - timeline.timeTick(Time.deltaTime); + timeline.Add(i, 0, ObstacleType.caveWalls); } - - void OnDrawGizmosSelected() - { - Gizmos.color = Color.green; - Gizmos.DrawLine(new Vector3(spawnLine,-10,0), new Vector3(spawnLine,10,0)); - } + timeline.Add(2, 2.75f, ObstacleType.rockTop); + timeline.Add(8, -2, ObstacleType.rockBottom); + timeline.Add(20, 0, ObstacleType.narrowPassage); + + timeline.OnSpawnEvent += spawnOnEvent; + } + + // Update is called once per frame + void Update() + { + timeline.timeTick(Time.deltaTime); + } + + void OnDrawGizmosSelected() + { + Gizmos.color = Color.green; + Gizmos.DrawLine(new Vector3(spawnLine, -10, 0), new Vector3(spawnLine, 10, 0)); + } } diff --git a/nGJ2019/Assets/Scripts/ObstacleType.cs b/nGJ2019/Assets/Scripts/ObstacleType.cs index c62f629..79a4980 100644 --- a/nGJ2019/Assets/Scripts/ObstacleType.cs +++ b/nGJ2019/Assets/Scripts/ObstacleType.cs @@ -2,4 +2,4 @@ using System.Collections.Generic; using UnityEngine; -public enum ObstacleType {alfa, beta} +public enum ObstacleType { caveWalls, rockTop, rockBottom, narrowPassage, rockJaws } |