diff --git a/.gitignore b/.gitignore index 2a1e4c4..c458df2 100644 --- a/.gitignore +++ b/.gitignore @@ -143,6 +143,7 @@ fabric.properties # TextMesh Pro files [Aa]ssets/TextMesh*Pro/ +[Aa]ssets/TextMesh* # Visual Studio cache directory .vs/ @@ -536,6 +537,7 @@ MigrationBackup/ # Ignore editor plugins Assets/Plugins/Editor* [Aa]ssets/Plugins/Editor/JetBrains/* +Assets/TextMesh Pro.meta # Don't store keystores on Github *.keystore diff --git a/Assets/DevMocks/Resources/DevMocks/Dumb.prefab b/Assets/DevMocks/Resources/DevMocks/Dumb.prefab index a229924..2ee8615 100644 --- a/Assets/DevMocks/Resources/DevMocks/Dumb.prefab +++ b/Assets/DevMocks/Resources/DevMocks/Dumb.prefab @@ -111,6 +111,7 @@ GameObject: - component: {fileID: 1330784298487411849} - component: {fileID: 3670963333241729696} - component: {fileID: 7110750718968962680} + - component: {fileID: 430766997717814334} m_Layer: 14 m_Name: Dumb m_TagString: Enemy @@ -192,3 +193,15 @@ BoxCollider2D: serializedVersion: 2 m_Size: {x: 0.9, y: 0.9} m_EdgeRadius: 0 +--- !u!114 &430766997717814334 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7795087027144463245} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1ec64748dfd5f8948996e97a49538538, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/DevMocks/Resources/DevMocks/DummyEnemy.prefab b/Assets/DevMocks/Resources/DevMocks/DummyEnemy.prefab new file mode 100644 index 0000000..7f9fa6d --- /dev/null +++ b/Assets/DevMocks/Resources/DevMocks/DummyEnemy.prefab @@ -0,0 +1,175 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &1538228739935925895 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1538228739935925892} + - component: {fileID: 1538228739935925893} + - component: {fileID: 1538228739935925894} + - component: {fileID: 1538228739935925891} + m_Layer: 14 + m_Name: DummyEnemy + m_TagString: Enemy + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1538228739935925892 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1538228739935925895} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 5, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1538228741088485487} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!50 &1538228739935925893 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1538228739935925895} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 0 + m_Material: {fileID: 6200000, guid: dc8eb6133faaf45f6820487d0d28b47f, type: 2} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!114 &1538228739935925894 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1538228739935925895} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29972d94a069eef40924fbb80ca2fb24, type: 3} + m_Name: + m_EditorClassIdentifier: + OneDirection: {x: -1, y: 0} +--- !u!61 &1538228739935925891 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1538228739935925895} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.5, y: 0.9} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 0.5, y: 0.9} + m_EdgeRadius: 0 +--- !u!1 &1538228741088485488 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1538228741088485487} + - component: {fileID: 1538228741088485486} + m_Layer: 14 + m_Name: Sprite + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1538228741088485487 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1538228741088485488} + 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: [] + m_Father: {fileID: 1538228739935925892} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &1538228741088485486 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1538228741088485488} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + 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: 0 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 55fee6a02b8d5bc4e993261a717e89cc, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 diff --git a/Assets/DevMocks/Resources/DevMocks/DummyEnemy.prefab.meta b/Assets/DevMocks/Resources/DevMocks/DummyEnemy.prefab.meta new file mode 100644 index 0000000..7939528 --- /dev/null +++ b/Assets/DevMocks/Resources/DevMocks/DummyEnemy.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2ab6367571f7bcc45b9dd6cc9ee7f656 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity index a201ec9..914b5f8 100644 --- a/Assets/Scenes/GameScene.unity +++ b/Assets/Scenes/GameScene.unity @@ -299,7 +299,7 @@ PrefabInstance: - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, type: 3} propertyPath: m_LocalPosition.x - value: 10.969402 + value: 7.7734566 objectReference: {fileID: 0} - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, type: 3} @@ -309,7 +309,7 @@ PrefabInstance: - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, type: 3} propertyPath: m_LocalPosition.z - value: -10 + value: -2.7893844 objectReference: {fileID: 0} - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, type: 3} diff --git a/Assets/Scenes/TestSceneNoWalls.unity b/Assets/Scenes/TestSceneNoWalls.unity new file mode 100644 index 0000000..822b868 --- /dev/null +++ b/Assets/Scenes/TestSceneNoWalls.unity @@ -0,0 +1,1958 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 10 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringMode: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &9172213 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 9172214} + - component: {fileID: 9172215} + m_Layer: 14 + m_Name: Sprite + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &9172214 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9172213} + 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: [] + m_Father: {fileID: 1328211286} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &9172215 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9172213} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + 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: 0 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 55fee6a02b8d5bc4e993261a717e89cc, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1001 &144613017 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 4346602752014574748, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_Name + value: Dumber (4) + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.x + value: 10 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.y + value: -6 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_RootOrder + value: 12 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: e719de70e335f4e49ae40cc6731309d4, type: 3} +--- !u!1001 &256402287 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 2337714413289243000, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_Name + value: VCAM1 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalPosition.z + value: -2.7893844 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_RootOrder + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243006, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243001, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_Follow + value: + objectReference: {fileID: 790628331} + - target: {fileID: 2337714413289243001, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2337714413289243007, guid: 25b81e3a3904a4b4ca0b10944fcea79b, + type: 3} + propertyPath: m_BoundingShape2D + value: + objectReference: {fileID: 864344128} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 25b81e3a3904a4b4ca0b10944fcea79b, type: 3} +--- !u!1001 &453530411 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 4734973651968032115, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_Name + value: CameraConfiner + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalPosition.x + value: 7.78 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalPosition.y + value: -0.87 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalPosition.z + value: -9.911216 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4734973651968032113, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, type: 3} +--- !u!1 &538242719 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 538242720} + - component: {fileID: 538242721} + m_Layer: 14 + m_Name: Sprite + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &538242720 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 538242719} + 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: [] + m_Father: {fileID: 1992196825} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &538242721 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 538242719} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + 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: 0 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 55fee6a02b8d5bc4e993261a717e89cc, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &554901994 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 554901997} + - component: {fileID: 554901996} + - component: {fileID: 554901995} + - component: {fileID: 554901998} + m_Layer: 14 + m_Name: DummyEnemy (12) + m_TagString: Enemy + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &554901995 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 554901994} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29972d94a069eef40924fbb80ca2fb24, type: 3} + m_Name: + m_EditorClassIdentifier: + OneDirection: {x: 0, y: 0} +--- !u!50 &554901996 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 554901994} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 0 + m_Material: {fileID: 6200000, guid: dc8eb6133faaf45f6820487d0d28b47f, type: 2} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!4 &554901997 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 554901994} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -5, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 797222889} + m_Father: {fileID: 0} + m_RootOrder: 15 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &554901998 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 554901994} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.5, y: 0.5} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 0.9, y: 0.9} + m_EdgeRadius: 0 +--- !u!1001 &596913920 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1896072655702505677, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_Name + value: BombSpawner + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalPosition.x + value: 7.8192964 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalPosition.y + value: -2.0062397 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalPosition.z + value: 8.0234375 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1896072655702505676, guid: c9b7903151183144dbf30c9b2ab371b2, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: c9b7903151183144dbf30c9b2ab371b2, type: 3} +--- !u!4 &790628331 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + m_PrefabInstance: {fileID: 1507077545} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &791818283 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 7054975846833851214, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_Name + value: Grid + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7054975846833851208, guid: f064c0737a3e54f1fadc75fc09919760, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: f064c0737a3e54f1fadc75fc09919760, type: 3} +--- !u!1 &797222888 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 797222889} + - component: {fileID: 797222890} + m_Layer: 14 + m_Name: Sprite + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &797222889 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 797222888} + 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: [] + m_Father: {fileID: 554901997} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &797222890 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 797222888} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + 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: 0 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 55fee6a02b8d5bc4e993261a717e89cc, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!60 &864344128 stripped +PolygonCollider2D: + m_CorrespondingSourceObject: {fileID: 4734973651968032114, guid: b753f30f50e804ee1ba8e3ab7eae2bf9, + type: 3} + m_PrefabInstance: {fileID: 453530411} + m_PrefabAsset: {fileID: 0} +--- !u!1 &1160499199 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1160499202} + - component: {fileID: 1160499201} + - component: {fileID: 1160499200} + - component: {fileID: 1160499203} + m_Layer: 14 + m_Name: DummyEnemy (13) + m_TagString: Enemy + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1160499200 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1160499199} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29972d94a069eef40924fbb80ca2fb24, type: 3} + m_Name: + m_EditorClassIdentifier: + OneDirection: {x: 0, y: 0} +--- !u!50 &1160499201 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1160499199} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 0 + m_Material: {fileID: 6200000, guid: dc8eb6133faaf45f6820487d0d28b47f, type: 2} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!4 &1160499202 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1160499199} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -6, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1813481777} + m_Father: {fileID: 0} + m_RootOrder: 16 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1160499203 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1160499199} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.5, y: 0.5} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 0.9, y: 0.9} + m_EdgeRadius: 0 +--- !u!1 &1328211283 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1328211286} + - component: {fileID: 1328211285} + - component: {fileID: 1328211284} + - component: {fileID: 1328211287} + m_Layer: 14 + m_Name: DummyEnemy (9) + m_TagString: Enemy + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1328211284 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1328211283} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29972d94a069eef40924fbb80ca2fb24, type: 3} + m_Name: + m_EditorClassIdentifier: + OneDirection: {x: -1, y: 0} +--- !u!50 &1328211285 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1328211283} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 0 + m_Material: {fileID: 6200000, guid: dc8eb6133faaf45f6820487d0d28b47f, type: 2} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!4 &1328211286 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1328211283} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 8, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 9172214} + m_Father: {fileID: 0} + m_RootOrder: 9 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1328211287 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1328211283} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.5, y: 0.5} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 0.9, y: 0.9} + m_EdgeRadius: 0 +--- !u!1 &1334815618 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1334815621} + - component: {fileID: 1334815620} + - component: {fileID: 1334815619} + - component: {fileID: 1334815622} + m_Layer: 14 + m_Name: DummyEnemy (11) + m_TagString: Enemy + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1334815619 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1334815618} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29972d94a069eef40924fbb80ca2fb24, type: 3} + m_Name: + m_EditorClassIdentifier: + OneDirection: {x: 0, y: 0} +--- !u!50 &1334815620 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1334815618} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 0 + m_Material: {fileID: 6200000, guid: dc8eb6133faaf45f6820487d0d28b47f, type: 2} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!4 &1334815621 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1334815618} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -4, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1835368026} + m_Father: {fileID: 0} + m_RootOrder: 14 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1334815622 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1334815618} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.5, y: 0.5} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 0.9, y: 0.9} + m_EdgeRadius: 0 +--- !u!1001 &1362215266 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 9082059503774285364, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_Name + value: RespawnPosition + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9082059503774285365, guid: fd1ddd924c55b4f9694b98102c91a0a6, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: fd1ddd924c55b4f9694b98102c91a0a6, type: 3} +--- !u!1001 &1408813916 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 4346602752014574748, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_Name + value: Dumber (5) + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.x + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.y + value: -2 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_RootOrder + value: 13 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: e719de70e335f4e49ae40cc6731309d4, type: 3} +--- !u!1001 &1507077545 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 6843575828445418657, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_Name + value: Player + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalPosition.z + value: 7.2106156 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6843575828445418654, guid: d3055091a17dc4aa1accf2e33ccef144, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: d3055091a17dc4aa1accf2e33ccef144, type: 3} +--- !u!1 &1813481776 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1813481777} + - component: {fileID: 1813481778} + m_Layer: 14 + m_Name: Sprite + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1813481777 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1813481776} + 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: [] + m_Father: {fileID: 1160499202} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &1813481778 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1813481776} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + 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: 0 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 55fee6a02b8d5bc4e993261a717e89cc, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &1835368025 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1835368026} + - component: {fileID: 1835368027} + m_Layer: 14 + m_Name: Sprite + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1835368026 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1835368025} + 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: [] + m_Father: {fileID: 1334815621} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &1835368027 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1835368025} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + 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: 0 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 55fee6a02b8d5bc4e993261a717e89cc, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1001 &1984764363 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 485484359815033065, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_Name + value: Main Camera + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalPosition.x + value: 7.7734566 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalPosition.y + value: -4.0430503 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalPosition.z + value: -2.7893844 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 485484359815032853, guid: a977eab75b5324ec4b659c2e2a0e9cfd, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: a977eab75b5324ec4b659c2e2a0e9cfd, type: 3} +--- !u!1 &1992196822 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1992196825} + - component: {fileID: 1992196824} + - component: {fileID: 1992196823} + - component: {fileID: 1992196826} + m_Layer: 14 + m_Name: DummyEnemy (8) + m_TagString: Enemy + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1992196823 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1992196822} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29972d94a069eef40924fbb80ca2fb24, type: 3} + m_Name: + m_EditorClassIdentifier: + OneDirection: {x: -1, y: 0} +--- !u!50 &1992196824 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1992196822} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 0 + m_Material: {fileID: 6200000, guid: dc8eb6133faaf45f6820487d0d28b47f, type: 2} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!4 &1992196825 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1992196822} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 7, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 538242720} + m_Father: {fileID: 0} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1992196826 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1992196822} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.5, y: 0.5} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 0.9, y: 0.9} + m_EdgeRadius: 0 +--- !u!1 &1992414988 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1992414991} + - component: {fileID: 1992414990} + - component: {fileID: 1992414989} + - component: {fileID: 1992414992} + m_Layer: 14 + m_Name: DummyEnemy (10) + m_TagString: Enemy + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1992414989 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1992414988} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29972d94a069eef40924fbb80ca2fb24, type: 3} + m_Name: + m_EditorClassIdentifier: + OneDirection: {x: 0, y: 0} +--- !u!50 &1992414990 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1992414988} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 0 + m_Material: {fileID: 6200000, guid: dc8eb6133faaf45f6820487d0d28b47f, type: 2} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!4 &1992414991 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1992414988} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -4, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1995932126} + m_Father: {fileID: 0} + m_RootOrder: 10 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1992414992 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1992414988} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.5, y: 0.5} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 0.9, y: 0.9} + m_EdgeRadius: 0 +--- !u!1 &1995932125 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1995932126} + - component: {fileID: 1995932127} + m_Layer: 14 + m_Name: Sprite + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1995932126 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1995932125} + 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: [] + m_Father: {fileID: 1992414991} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &1995932127 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1995932125} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + 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: 0 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 55fee6a02b8d5bc4e993261a717e89cc, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1001 &2085973807 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 4346602752014574748, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_Name + value: Dumber (3) + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.x + value: 10 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.y + value: -4 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_RootOrder + value: 11 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 644191348100887617, guid: e719de70e335f4e49ae40cc6731309d4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: e719de70e335f4e49ae40cc6731309d4, type: 3} +--- !u!1001 &1538228741107166463 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1538228739935925895, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_Name + value: DummyEnemy (7) + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_RootOrder + value: 7 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925892, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925891, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_Offset.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925891, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_Offset.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925891, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_Size.x + value: 0.9 + objectReference: {fileID: 0} + - target: {fileID: 1538228739935925891, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, + type: 3} + propertyPath: m_Size.y + value: 0.9 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 2ab6367571f7bcc45b9dd6cc9ee7f656, type: 3} diff --git a/Assets/Scenes/TestSceneNoWalls.unity.meta b/Assets/Scenes/TestSceneNoWalls.unity.meta new file mode 100644 index 0000000..03f0f59 --- /dev/null +++ b/Assets/Scenes/TestSceneNoWalls.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7de2b522bb32ea84a9a474de611dd137 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/src/Base/EnemyBase.cs b/Assets/Scripts/src/Base/EnemyBase.cs index 166c03f..3912bd9 100644 --- a/Assets/Scripts/src/Base/EnemyBase.cs +++ b/Assets/Scripts/src/Base/EnemyBase.cs @@ -33,7 +33,7 @@ public abstract class EnemyBase : MonoBehaviour, IExplosable { Unstuck(); } - Rigidbody2d.MovePosition(Rigidbody2d.position + Direction * Speed * Time.deltaTime); + Rigidbody2d.MovePosition(Rigidbody2d.position + Speed * Time.deltaTime * Direction); } public void OnTriggerEnter2D(Collider2D other) diff --git a/Assets/Scripts/src/Enemy/CollisionMovementEnemy.cs b/Assets/Scripts/src/Enemy/CollisionMovementEnemy.cs new file mode 100644 index 0000000..8ab5849 --- /dev/null +++ b/Assets/Scripts/src/Enemy/CollisionMovementEnemy.cs @@ -0,0 +1,18 @@ +namespace src.Enemy +{ + public class CollisionMovementEnemy : EnemyBase + /* Enemy that will change direction only on collision. */ + { + protected new void Start() + { + Speed = 4f; + base.Start(); + } + + protected new void FixedUpdate() + { + base.FixedUpdate(); + } + + } +} diff --git a/Assets/Scripts/src/Enemy/DumberEnemy.cs.meta b/Assets/Scripts/src/Enemy/CollisionMovementEnemy.cs.meta similarity index 100% rename from Assets/Scripts/src/Enemy/DumberEnemy.cs.meta rename to Assets/Scripts/src/Enemy/CollisionMovementEnemy.cs.meta diff --git a/Assets/Scripts/src/Enemy/DumbEnemy.cs b/Assets/Scripts/src/Enemy/DumbEnemy.cs deleted file mode 100644 index 6701752..0000000 --- a/Assets/Scripts/src/Enemy/DumbEnemy.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; -using src.Helpers; - -public class DumbEnemy : EnemyBase -{ - protected new void Start() - { - Speed = 4f; - base.Start(); - } - - protected new void FixedUpdate() - { - if (gameStateManager.IsGamePaused || gameStateManager.IsPlayerMovementForbidden) {return;} - if (transform.position.x == Mathf.Floor(transform.position.x) && - transform.position.y == Mathf.Floor(transform.position.y)) - { - if (RandomChange()) - { - HandleChangeDirection(); - } - else - { - Rigidbody2d.MovePosition(Rigidbody2d.position + Speed * Time.deltaTime * Direction); - } - } - else - { - Rigidbody2d.MovePosition(Rigidbody2d.position + Speed * Time.deltaTime * Direction); - } - } - - private bool RandomChange() - { - var random = new System.Random(); - var randomNumber = random.Next(0, 100); - return randomNumber <= 25; - } - - private void HandleChangeDirection() - { - Direction = ChooseRandomExceptCertainDirection(Direction); - MoveToCenterOfTheCell(); - Rigidbody2d.MovePosition(Rigidbody2d.position + Speed * Time.deltaTime * Direction); - } -} diff --git a/Assets/Scripts/src/Enemy/DumberEnemy.cs b/Assets/Scripts/src/Enemy/DumberEnemy.cs deleted file mode 100644 index 122f282..0000000 --- a/Assets/Scripts/src/Enemy/DumberEnemy.cs +++ /dev/null @@ -1,16 +0,0 @@ -public class DumberEnemy : EnemyBase -{ - - //Momentan lasam asa, o sa difere probabil la animatii and stats, nu stiu sigur - protected new void Start() - { - Speed = 4f; - base.Start(); - } - - protected new void FixedUpdate() - { - base.FixedUpdate(); - } - -} diff --git a/Assets/TextMesh Pro.meta b/Assets/Scripts/src/Enemy/Dummy.meta similarity index 77% rename from Assets/TextMesh Pro.meta rename to Assets/Scripts/src/Enemy/Dummy.meta index f9da8b5..4c03f67 100644 --- a/Assets/TextMesh Pro.meta +++ b/Assets/Scripts/src/Enemy/Dummy.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f54d1bd14bd3ca042bd867b519fee8cc +guid: 738f4be39c8d33d4dbfe91e24b6b1b63 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Scripts/src/Enemy/Dummy/OneDirectionEnemy.cs b/Assets/Scripts/src/Enemy/Dummy/OneDirectionEnemy.cs new file mode 100644 index 0000000..f0b7d8b --- /dev/null +++ b/Assets/Scripts/src/Enemy/Dummy/OneDirectionEnemy.cs @@ -0,0 +1,27 @@ +using UnityEngine; + +namespace Assets.Scripts.src.Enemy.Dummy +{ + //This kind of enemy is used just for testing purposes + //This enemy will go just in one direction or stays in place + //To make it stay in place, don't assign any direction in OneDirection slot or assign Vector2.zero + public class OneDirectionEnemy : EnemyBase + { + public Vector2 OneDirection = Vector2.zero; + + protected new void Start() + { + Speed = 4.0f; + Rigidbody2d = GetComponent(); + } + + protected new void FixedUpdate() + { + if (OneDirection != Vector2.zero) + { + if (gameStateManager.IsGamePaused || gameStateManager.IsPlayerMovementForbidden) { return; } + Rigidbody2d.MovePosition(Rigidbody2d.position + OneDirection * Speed * Time.deltaTime); + } + } + } +} diff --git a/Assets/Scripts/src/Enemy/Dummy/OneDirectionEnemy.cs.meta b/Assets/Scripts/src/Enemy/Dummy/OneDirectionEnemy.cs.meta new file mode 100644 index 0000000..079d40a --- /dev/null +++ b/Assets/Scripts/src/Enemy/Dummy/OneDirectionEnemy.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 29972d94a069eef40924fbb80ca2fb24 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/src/Enemy/RandomMovementEnemy.cs b/Assets/Scripts/src/Enemy/RandomMovementEnemy.cs new file mode 100644 index 0000000..32b9da4 --- /dev/null +++ b/Assets/Scripts/src/Enemy/RandomMovementEnemy.cs @@ -0,0 +1,53 @@ +using System; +using src.Helpers; +using UnityEngine; + +namespace src.Enemy +{ + public class RandomMovementEnemy : EnemyBase + { + /* Enemy that will move randomly */ + protected new void Start() + { + Speed = 4f; + base.Start(); + } + + protected new void FixedUpdate() + { + var pos = transform.position; + var x = pos.x; + var y = pos.y; + if (gameStateManager.IsGamePaused || gameStateManager.IsPlayerMovementForbidden) { return; } + if (Math.Abs(x - Mathf.Floor(x)) < 0.1 && Math.Abs(y - Mathf.Floor(y)) < 0.1) + { + if (RandomChange()) + { + HandleChangeDirection(); + } + else + { + Rigidbody2d.MovePosition(Rigidbody2d.position + Speed * Time.deltaTime * Direction); + } + } + else + { + Rigidbody2d.MovePosition(Rigidbody2d.position + Speed * Time.deltaTime * Direction); + } + } + + private bool RandomChange() + { + var random = new System.Random(); + var randomNumber = random.Next(0, 100); + return randomNumber <= 25; + } + + private void HandleChangeDirection() + { + Direction = ChooseRandomExceptCertainDirection(Direction); + MoveToCenterOfTheCell(); + Rigidbody2d.MovePosition(Rigidbody2d.position + Speed * Time.deltaTime * Direction); + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/src/Enemy/DumbEnemy.cs.meta b/Assets/Scripts/src/Enemy/RandomMovementEnemy.cs.meta similarity index 100% rename from Assets/Scripts/src/Enemy/DumbEnemy.cs.meta rename to Assets/Scripts/src/Enemy/RandomMovementEnemy.cs.meta diff --git a/Assets/Scripts/src/Level/LevelManager.cs b/Assets/Scripts/src/Level/LevelManager.cs index d193772..6cd1f0d 100644 --- a/Assets/Scripts/src/Level/LevelManager.cs +++ b/Assets/Scripts/src/Level/LevelManager.cs @@ -6,15 +6,14 @@ using src.Level.src.Level; using src.Managers; using src.Wall; using UnityEngine; -using Random = UnityEngine.Random; namespace src.Level { public class LevelManager : GameplayComponent, IDynamicLevelData { - /** Extracted them here for easy to change reason */ - private const int XMaxEnemyPosition = 5; - private const int YMinEnemyPosition = -5; + /** Safe-zone coordinates to prevent enemies to instantly kill you*/ + private const int XMaxEnemyPosition = 4; + private const int YMinEnemyPosition = -4; public Count DestructibleWallCount { @@ -206,8 +205,8 @@ namespace src.Level private void SetupLevelEnemies() { var numberOfEnemiesToPlace = _enemyCount.RandomIntRange(); - _freeGridPositions.ShuffleList(); _freeGridPositions.RemoveAll(pos => pos.x <= XMaxEnemyPosition && pos.y >= YMinEnemyPosition); + _freeGridPositions.ShuffleList(); foreach (var nextPosition in _freeGridPositions) { if (numberOfEnemiesToPlace == 0) @@ -219,14 +218,13 @@ namespace src.Level } } - private bool PlaceEnemy(Vector3 position) + private void PlaceEnemy(Vector3 position) { DebugHelper.LogVerbose($"PlaceEnemy: x:{position.x} y:{position.y}"); var randomEnemy = _enemiesPrefab.ChoseRandom(); var instance = Instantiate(randomEnemy, position, Quaternion.identity); - _enemies.Add(instance); instance.transform.SetParent(boardHolder); - return true; + _enemies.Add(instance); } /* Initializes the level. */