Reworked lightning effect

This commit is contained in:
2025-12-21 01:28:57 +03:00
parent 8227e8bcf3
commit 2bf70d2b49
9 changed files with 107 additions and 72 deletions
+5 -1
View File
@@ -43,7 +43,7 @@ func _on_screen_exited() -> void:
func _on_out_of_screen_timer_timeout() -> void:
queue_free()
delete()
func _try_to_damage(body: Node2D, damage: AbstractDamage) -> bool:
@@ -55,6 +55,10 @@ func _try_to_damage(body: Node2D, damage: AbstractDamage) -> bool:
func _process_hit_for_projectile(_collided_body: Node2D) -> void:
delete()
func delete() -> void:
queue_free()