chore: fix warnings (?)

This commit is contained in:
installer
2025-01-22 19:05:53 +01:00
parent 3ef5356560
commit 52ce1d00c3
2 changed files with 8 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ func _process(delta) -> void:
func _on_body_entered(_body: Node2D) -> void:
if can_collide:
collision.emit();
queue_free();
call_deferred("queue_free");
func _on_area_entered(area: Area2D) -> void:
area.queue_free();
@@ -37,5 +37,5 @@ func _on_area_entered(area: Area2D) -> void:
Global.score += 10;
$MeteorImage.hide();
can_collide = false;
await get_tree().create_timer(0.5).timeout;
queue_free();
#await get_tree().create_timer(0.5).timeout;
call_deferred("queue_free");