Clean up events, add weapon tag for weaker on swing
This commit is contained in:
@@ -127,4 +127,10 @@ public partial class ThrownItem : RigidBody3D, IThrownItem
|
||||
enemy.HealthComponent.Damage(damageDealt);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnExitTree()
|
||||
{
|
||||
BodyEntered -= ThrownItem_BodyEntered;
|
||||
Collision.AreaEntered -= Collision_AreaEntered;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user