added game states
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user