added game states

This commit is contained in:
Nikolai Fesenko
2025-08-28 23:37:44 +02:00
parent 972c785007
commit 4e810f8fc0
7 changed files with 60 additions and 9 deletions

View File

@@ -27,3 +27,8 @@ func moveTo(target_pos: Vector3):
func on_target_reached():
print("Target Reached")
is_target_reached = true
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)