From 793fa28563e02eff1c197afe5dbae3c40d27a2d2 Mon Sep 17 00:00:00 2001 From: Kotrba Filip Date: Sat, 1 Feb 2020 10:39:29 +0100 Subject: [PATCH] Zombie implement 1 --- .../v16/Server/sqlite3/storage.ide-wal | Bin 4136512 -> 4136512 bytes Assets/Prefabs/Enemy.prefab | 160 +++++++++++++++--- Assets/Scenes/Test-JonatanRek.unity | 131 +------------- Assets/Scripts/EnemyManager.cs | 11 +- 4 files changed, 141 insertions(+), 161 deletions(-) diff --git a/.vs/GlobalGameJame/v16/Server/sqlite3/storage.ide-wal b/.vs/GlobalGameJame/v16/Server/sqlite3/storage.ide-wal index 181ff27407618f7c88674d64cffe4bbda0608bc9..8d2895014ee519819bf46fc0df7e310eec346654 100644 GIT binary patch delta 14084 zcmd^Fc{o)6_ct?^vCJ4@?6U7WAzR53CDEdgl9VC}Df>DTvTK)&2uK2oKuw?_ z&=TkfXaYTffxt*$B47wu0y6Eanw}D#IopVk&4USE1QVhn)#I_3Abz8 z;X|nshjX1t<}t!j0VO652H%_<1+b;#DFb2J=MhR_-3^Dwq7w46^qhw6V>w1}Vcd@u z^vYhDH8|I021-6GZhsW2n7>V=;^D(q3`@A4IUT8_Kt8C-OAdSX)!spyjwpJtx*T{H;2WB@!~Q5!i6iQu7NJPxU;yftK@Q1w|duT{!v*?A8+h~vD{FWh54+*(f^Ch$ys`#3u5<06P+Q{J}vizF`G> zwo2v&A-Eb%lxj46Ukw(h8u*!ND8SX|YU01l+0MYfqd({sYgJ_dR@vE-QVkJO9-|;# zfP4nWRhNQsE}YHKdd7Ey_o=!L`kM)-2WjbYKl8oTwIYtVh2{&c8_gW1?@)Sb;Mmzc zXw6-nJ2@2NNwlUL^QZ_%)2#_ftsh3tXa+0OQFZFvi<0<4)HeuU?(;0Yvc+1?mFv39 zUWcTVI~S7`Zb*KLyMM&Rv3(!8k)^JM+vYHxq-`TwK|TAsvbck?+=k17C?Fp|D>tD? z-th=5+9I0SsblQcIQiTcY8(#jElsn5V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`>VAG>-wmTr=jyGG2bCZK%w~-DRWl-YF)=v!ApH-i;o|xA>WNaYW(m< zzl~THI|BGpFb7X`v(X|(9n5_>4De7_a1bRq_UWX6`S%xp5!EHbW#Ox4KU!u(-&CR{ zGzOTB?iaI&5dIP2*q>FA9nak#f&xx}Z}AxO+)u_*p@ITlJ1tM?fsb+l2AdziE?sWk zl+DW^0NB+w3DeToP=W#M&UHy1MqQm*05%m%-%(hz*1-Sj?|#{EN}9`H&(Xm?Wsp8U zMth6!}%=mU*xjlJ??-_w&7V88DZoGbQ0cvo<9*4Ds?3a6@+Sp}-=Ei%@e zTaDPn%g!RS}dPaDU+dIn!0w2eNIFn8(b6A58R{&HnC zp@Zm?20CL;8rTPEvqv(S7a(-l!%lpJ;`(#?Ikxx#EmhdfeVe!HW{jW!Mv#)lU)L^8 zPcF2g9pZz8Fo2OAmUJ{^(2zw#4h?xU7-%rjP(VWwjoD}@p`nb13L2_t%t1p94Rtg$ p(9lF(); - Rigidbody rigidBodyEnemy = gameObject.GetComponent() as Rigidbody; - rigidBodyEnemy.velocity = -gameObject.transform.forward; - rigidBodyEnemy.mass = 50; Destroy(this.gameObject, 3); } } @@ -73,7 +69,12 @@ public class EnemyManager : MonoBehaviour bodyParts[i].AddComponent(); Rigidbody rigidBodyEnemy = bodyParts[i].GetComponent() as Rigidbody; bodyParts[i].AddComponent(); - rigidBodyEnemy.mass = 10; + MeshCollider meshCollider = bodyParts[i].GetComponent() as MeshCollider; + meshCollider.convex = true; + if (i == bodyParts.Count -1) { + rigidBodyEnemy.velocity = -bodyParts[i].transform.forward; + } + rigidBodyEnemy.mass = 10 * bodyParts.Count; } } }