diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-04-22 16:34:25 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-04-22 16:34:25 +0200 |
commit | c8a316e4b8987dad963656a34665fa0e23dedcb1 (patch) | |
tree | 569af4b4f37d21079b6aedfad5164e94b50b6cb8 /Scenes/Entities/Objects/Coin.gd | |
parent | f27937e6e9b6a7146dd09fc711d2d293ecf5abbf (diff) |
update
Diffstat (limited to 'Scenes/Entities/Objects/Coin.gd')
-rw-r--r-- | Scenes/Entities/Objects/Coin.gd | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Scenes/Entities/Objects/Coin.gd b/Scenes/Entities/Objects/Coin.gd index 48e30b3..2bbb75c 100644 --- a/Scenes/Entities/Objects/Coin.gd +++ b/Scenes/Entities/Objects/Coin.gd @@ -9,10 +9,8 @@ func _ready(): add_child(collision_area) -func hit_by_explosion(): - queue_free() - - func _collide(area: Area2D): if area.is_in_group("player"): queue_free() + elif area.is_in_group("explosions"): + queue_free() |