Made sword "work"

This commit is contained in:
2023-04-01 23:58:58 -07:00
parent fdb1c69775
commit 73310fbf87
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<prefab name="SwordHitbox" type=""> <prefab name="SwordHitbox" type="">
<CharacterController2D />
<BoxCollider /> <BoxCollider />
<HurtHazard ref="hazard" /> <TriggerController2D ref="trigger" />
<HurtHazard trigger="trigger" />
</prefab> </prefab>

View File

@ -5,6 +5,9 @@
<EntityHealth /> <EntityHealth />
<EntityFaction faction="FACTION_ENEMY" /> <EntityFaction faction="FACTION_ENEMY" />
<CharacterController2D />
<BoxCollider />
<child> <child>
<BoxCollider min="-0.4, -0.4" max="0.4, 0.4" /> <BoxCollider min="-0.4, -0.4" max="0.4, 0.4" />
<SolidController2D /> <SolidController2D />