Forgot a bit
This commit is contained in:
@@ -36,7 +36,7 @@ public partial class SetItem : RigidBody3D
|
||||
private void ExplosionArea_AreaEntered(Area3D area)
|
||||
{
|
||||
if (area.GetOwner() is ExplodableWall wall)
|
||||
// door.Demolish();
|
||||
wall.Demolish();
|
||||
if (area.GetOwner() is IEnemy enemy)
|
||||
enemy.HealthComponent.Damage(10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user