Made the hurt hazard work better.

This commit is contained in:
2023-04-01 23:52:34 -07:00
parent 9167c7a88a
commit fdb1c69775
17 changed files with 141 additions and 68 deletions

View File

@ -1,10 +1,19 @@
<prefab name="Urchin" type="">
<MeshRenderer />
<CapsuleMeshHost />
<MeshRenderer />
<SimpleTexturedMaterial ref="material" />
<CharacterController2D />
<BoxCollider />
<EntityHealth />
<HurtHazard />
<EntityFaction faction="FACTION_ENEMY" />
<child>
<BoxCollider min="-0.4, -0.4" max="0.4, 0.4" />
<SolidController2D />
</child>
<child>
<BoxCollider />
<TriggerController2D ref="hurtTrigger" />
</child>
<HurtHazard trigger="hurtTrigger" />
</prefab>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB