From 59287b6e5a8fa0db8b858fcd969f2468a0a1e3b2 Mon Sep 17 00:00:00 2001 From: Kotrba Filip Date: Sat, 1 Feb 2020 10:27:32 +0100 Subject: [PATCH] Enemy edit --- .../v16/Server/sqlite3/storage.ide-wal | Bin 4136512 -> 4136512 bytes Assets/Prefabs/Enemy.prefab | 484 +----------------- Assets/Scenes/Test-JonatanRek.unity | 131 ++++- Assets/Scripts/EnemyManager.cs | 2 +- 4 files changed, 118 insertions(+), 499 deletions(-) diff --git a/.vs/GlobalGameJame/v16/Server/sqlite3/storage.ide-wal b/.vs/GlobalGameJame/v16/Server/sqlite3/storage.ide-wal index 356ab75956d43e21f2c2127da5b9e2340d21726b..181ff27407618f7c88674d64cffe4bbda0608bc9 100644 GIT binary patch delta 1438 zcmbu;e^8Tk90%|{d$#dB8ykZ?H;`Z3LV+cg>IK1h5Yc4T6vA~06Q;I=q~L7s}JL;_`|Eb{&@ZI+wZ=i}^MAe_L62*gJu5+ETGAumKB8i|nvc_S&3As-}1zQ_+LdKf z%s@kKmDi-D-J*27X=NQ}$Vk?b%~;t^6-lvG0razMolWXu_q@Oq^E1SF{TSIsD(@Pi zGi+Vf(EBRbGTCsW;5&E6H`sNnc`UR<{rW)RzZ6Ut<8R+0+DK}Xmar9GJ70tA8wk0a zYSv2{PiXr}v0BC)r3o+G`x$dUB<;_t^}Z4`^;4zuwr@Umb}t^ilYIF6Y5!IB4~<&* z`XY7b!kEFChUI6N-{2x^Q~2gFn{}7Mg-OAB^F&Um>3H&&?h@M&euFQ!2&r;i)ZPu` zd^PTRnL!eQ!gV)^!vd=R`lsW+&>9tX4l8zv2#WPJ%U-9Z@kJNoaN~ZiWcYA; zt4mg;PwMEaqA~+5DL?e-JSCM-@<~t0{PbldS)z*!j!h*(CZ4Y>-n6e(ZHVUY*mmCNpP7@=|ci9Rc*T!XVZU z4w>e-C?z;aA%yw8xY67hG8)m$^;WvPx4R6P*S)UpP2_r;9WXcV9%|}e>g{^9Kr^Z+ zh~s)ISsMJI>{RsC%9y#Izji;-G+akz8LE5nUxP1Q+Om5cg26u`JXDdV1pXiZtN?)^ z2n2%=5DHX44K!dS2m`A?I9LrLKqQC)4}fU!Acz66AP#6jJkWuMz#6a?tOE}NJ$M8p QfJZ?hNWv9)$>)0i0Cnp+lK=n! delta 1457 zcmaLXdrVVj7zS|8X*q4Fg+ryMl)H*3*Kr*pml>DE!I(o(Cqh!{K*n$iyP#l!3g2j0 zfdNI229z$&O(7s&#^*LV>vV%{nR1CvHe3}{ozWQ7MHy}RocCOUjsHNRPeVL zWwbQy>T6_egT$E8hw#E*_^Faew)}pA^O@Gf6oJsN;cy0P8YVP~uj@tqk2VGB)oN=_ zob1vY%X7Yan8IGTmv9D~8dS%H!m7Q8)7hKF%1oE}j^dOOrBuMukK<^u*6Qq)oLlRG z>C?=tWF=*X-m0|ebUIpSSG}c8LXlxnn@1$I38;Nz;80`wspxClh8g-K+p$P#7Q#DA zv9)nEMUXxM<7KS}=`S=+XqS>Idm~*MMdaYR%S@XZ=ET3H&lTJHM$8!$W!r(wB=4=Au2HMU#0V+`1v8O(5E~v-6{hDr$k~_TsTk6*uWB z?~1kOu5bQI8ams%o{tXXq9eIzU+&fg{H;%X_;KI(K+C`a(GN>cJ<*iue{6X-v1XaU z^lFZwE0vF4$3>@b(QCNq8hqDL2?MFS+cYvj71{8btFEy7nD6hTpHADGf-OTzBqc`h z4V$Y$C{~Ovk&o~GAdBzOZ+wroK5$c;gJg^O9*L4i54x0COni@eY*}Na=MSa+Z;#l_ zJ&c^~9468fkL_Rn{YvJ}j)Qm9YfE(R8JylXlK<^dCfB3+j{dtxX67?;LLPH;fnizS zNg`rDc`#Tv>D@Ikc=AzPgN)*bmB9@wn;X_fZdfL64~$OWnEScqX_pM@CU9uBlfCB9 zyr>WtmPyWv@gF}hvBbQ!o$qlhG^)t2a{WIQ*ZXi4Z{Knxa(e6j@mGX4FGshdDEI<3 zJ9pMXh*;?NJxo}Xtpf4%s*Czv_1i1w*5*u$1h3EfXU9A6TeI?8bID6QkSQ{J!*A^t zzqPs@X2G={Nj$%`fPANx`;*Dx-D+vIlpS{JVT2UxUhXXu&)A1Z zuQb=bgu4ovpD04ZmhE9QiZE^ew7Wh&p?rJA^{mcgZ~i>6J3r~!H=z3}ahvFlP@N<3 zi)BoKfHlaKGI2zoHSLM#& diff --git a/Assets/Prefabs/Enemy.prefab b/Assets/Prefabs/Enemy.prefab index 052cf84..b30f290 100644 --- a/Assets/Prefabs/Enemy.prefab +++ b/Assets/Prefabs/Enemy.prefab @@ -1,323 +1,5 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1 &451344880335272152 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 957137528962163575} - - component: {fileID: 8348772251712057210} - - component: {fileID: 6599222860948787620} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &957137528962163575 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 451344880335272152} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.5, y: 0, z: 0.5} - m_LocalScale: {x: 0.25, y: 0.25, z: 0.7} - m_Children: [] - m_Father: {fileID: 5004747464968674621} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &8348772251712057210 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 451344880335272152} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &6599222860948787620 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 451344880335272152} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 316d3cad635501f40a396e5364d4eff3, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!1 &658032623710791470 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 936995858885731620} - - component: {fileID: 7722130892333006974} - - component: {fileID: 6904006501932618} - m_Layer: 0 - m_Name: Sphere (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &936995858885731620 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 658032623710791470} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0.32} - m_LocalScale: {x: 0.4, y: 0.4, z: 0.4} - m_Children: [] - m_Father: {fileID: 3987440928442069985} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &7722130892333006974 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 658032623710791470} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &6904006501932618 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 658032623710791470} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: eed2d74525424704a913401a05e42534, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!1 &1474177058086840755 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5719773549579985037} - - component: {fileID: 2632823903975364663} - - component: {fileID: 8794506179958979714} - m_Layer: 0 - m_Name: Sphere (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &5719773549579985037 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474177058086840755} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.15, y: 0.5, z: 0.4} - m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} - m_Children: - - {fileID: 5992892248837867117} - m_Father: {fileID: 5004747464968674621} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &2632823903975364663 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474177058086840755} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &8794506179958979714 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1474177058086840755} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 3a47c7bd2ba3e3743a2843885e6d6da8, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!1 &2286281829398607690 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3987440928442069985} - - component: {fileID: 3304574677261457023} - - component: {fileID: 2114497697311405954} - m_Layer: 0 - m_Name: Sphere - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &3987440928442069985 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2286281829398607690} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.15, y: 0.5, z: 0.4} - m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} - m_Children: - - {fileID: 936995858885731620} - m_Father: {fileID: 5004747464968674621} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &3304574677261457023 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2286281829398607690} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &2114497697311405954 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2286281829398607690} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 3a47c7bd2ba3e3743a2843885e6d6da8, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 --- !u!1 &3545622996904709018 GameObject: m_ObjectHideFlags: 0 @@ -349,11 +31,7 @@ Transform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 9.257, y: 1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 957137528962163575} - - {fileID: 836774083100016595} - - {fileID: 3987440928442069985} - - {fileID: 5719773549579985037} + m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -453,161 +131,5 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: health: 100 ---- !u!1 &6771538179627932786 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 836774083100016595} - - component: {fileID: 5454751748557777560} - - component: {fileID: 8919161112959111690} - m_Layer: 0 - m_Name: Cube (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &836774083100016595 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6771538179627932786} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.5, y: 0, z: 0.5} - m_LocalScale: {x: 0.25, y: 0.25, z: 0.7} - m_Children: [] - m_Father: {fileID: 5004747464968674621} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &5454751748557777560 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6771538179627932786} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &8919161112959111690 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6771538179627932786} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 316d3cad635501f40a396e5364d4eff3, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!1 &6958989050956181911 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5992892248837867117} - - component: {fileID: 6888413344189301469} - - component: {fileID: 2696317329770486717} - m_Layer: 0 - m_Name: Sphere (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &5992892248837867117 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6958989050956181911} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0.32} - m_LocalScale: {x: 0.4, y: 0.4, z: 0.4} - m_Children: [] - m_Father: {fileID: 5719773549579985037} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &6888413344189301469 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6958989050956181911} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &2696317329770486717 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6958989050956181911} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: eed2d74525424704a913401a05e42534, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 + actualHealth: 0 + bodyParts: [] diff --git a/Assets/Scenes/Test-JonatanRek.unity b/Assets/Scenes/Test-JonatanRek.unity index 9dd7994..fae1d7d 100644 --- a/Assets/Scenes/Test-JonatanRek.unity +++ b/Assets/Scenes/Test-JonatanRek.unity @@ -121,6 +121,12 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 23800000, guid: 210c0a45ca7dddb429c704640ac83479, type: 2} +--- !u!4 &305547909 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 5004747464968674621, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, + type: 3} + m_PrefabInstance: {fileID: 3163490711718144037} + m_PrefabAsset: {fileID: 0} --- !u!1 &597793628 GameObject: m_ObjectHideFlags: 0 @@ -243,12 +249,6 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &709589677 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 6771538179627932786, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, - type: 3} - m_PrefabInstance: {fileID: 3163490711718144037} - m_PrefabAsset: {fileID: 0} --- !u!1 &827899963 stripped GameObject: m_CorrespondingSourceObject: {fileID: 5859379536716062794, guid: 5322794fa1699704b8e50a14cef106b1, @@ -463,6 +463,108 @@ Transform: m_Father: {fileID: 827899965} m_RootOrder: 12 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &1411265515 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 305547909} + m_Modifications: + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalScale.x + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalScale.y + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: -4216859302048453862, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_LocalScale.z + value: 0.6 + objectReference: {fileID: 0} + - target: {fileID: -927199367670048503, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + propertyPath: m_Name + value: zombie + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: b12b2387bea57e2418c82d9a45fa92d9, type: 3} +--- !u!1 &1411265516 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: -927199367670048503, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + m_PrefabInstance: {fileID: 1411265515} + m_PrefabAsset: {fileID: 0} +--- !u!1 &1411265517 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 7469484624682501897, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + m_PrefabInstance: {fileID: 1411265515} + m_PrefabAsset: {fileID: 0} +--- !u!1 &1411265518 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 4695666576454475813, guid: b12b2387bea57e2418c82d9a45fa92d9, + type: 3} + m_PrefabInstance: {fileID: 1411265515} + m_PrefabAsset: {fileID: 0} --- !u!1 &1753935063 GameObject: m_ObjectHideFlags: 0 @@ -643,12 +745,6 @@ MonoBehaviour: m_EditorClassIdentifier: blockType: 0 health: 100 ---- !u!1 &2041862263 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 451344880335272152, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, - type: 3} - m_PrefabInstance: {fileID: 3163490711718144037} - m_PrefabAsset: {fileID: 0} --- !u!1001 &3163490711718144037 PrefabInstance: m_ObjectHideFlags: 0 @@ -719,24 +815,25 @@ PrefabInstance: - target: {fileID: 5433357422100294214, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, type: 3} propertyPath: bodyParts.Array.size - value: 2 + value: 3 objectReference: {fileID: 0} - target: {fileID: 5433357422100294214, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, type: 3} propertyPath: bodyParts.Array.data[0] value: - objectReference: {fileID: 2041862263} + objectReference: {fileID: 1411265518} - target: {fileID: 5433357422100294214, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, type: 3} propertyPath: bodyParts.Array.data[1] value: - objectReference: {fileID: 709589677} + objectReference: {fileID: 1411265517} - target: {fileID: 5433357422100294214, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, type: 3} propertyPath: bodyParts.Array.data[2] value: - objectReference: {fileID: 0} - m_RemovedComponents: [] + objectReference: {fileID: 1411265516} + m_RemovedComponents: + - {fileID: 213116840797951420, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, type: 3} m_SourcePrefab: {fileID: 100100000, guid: b4e392e2cdb417b4c8bdf8e683bceb9b, type: 3} --- !u!1001 &6179705720582673448 PrefabInstance: diff --git a/Assets/Scripts/EnemyManager.cs b/Assets/Scripts/EnemyManager.cs index 13fea68..19c09ec 100644 --- a/Assets/Scripts/EnemyManager.cs +++ b/Assets/Scripts/EnemyManager.cs @@ -72,7 +72,7 @@ public class EnemyManager : MonoBehaviour bodyParts[i].transform.parent = null; bodyParts[i].AddComponent(); Rigidbody rigidBodyEnemy = bodyParts[i].GetComponent() as Rigidbody; - bodyParts[i].AddComponent(); + bodyParts[i].AddComponent(); rigidBodyEnemy.mass = 10; } }