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