made tracker gun
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user