phase 2 ai shooting

This commit is contained in:
Nikolai Fesenko
2025-08-29 20:37:25 +02:00
parent fbd75b3397
commit c0cac7919a
8 changed files with 62 additions and 33 deletions

View File

@@ -34,3 +34,11 @@ func on_target_reached():
func _on_static_body_3d_input_event(camera: Node, event: InputEvent, event_position: Vector3, normal: Vector3, shape_idx: int) -> void:
if event.is_action_released("left_mouse_click"):
GameManager.bullet_selected.emit(self)
func shoot():
if is_live:
print("Ammo was live")
else:
print("Ammo not live")
pass