From c8a316e4b8987dad963656a34665fa0e23dedcb1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 22 Apr 2024 16:34:25 +0200 Subject: update --- Scenes/Entities/Objects/Coin.gd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Scenes/Entities/Objects/Coin.gd') 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() -- cgit v1.2.3