made tracker gun

This commit is contained in:
Derek
2024-11-24 16:27:48 -06:00
parent 05b8c0d760
commit 0312da48b8
21 changed files with 1008 additions and 242 deletions

View File

@@ -24,6 +24,6 @@ func hit(bullet_damage):
get_tree().get_root().add_child(number_spawn)
func _on_body_entered(body: Node3D) -> void:
if body.is_in_group("pellet"):
hit(body.bullet_damage)
SignalBus.emit_signal("enemy_hit")
hit(body.bullet_damage)
SignalBus.emit_signal("enemy_hit")
body.despawn()