11 lines
303 B
GDScript
11 lines
303 B
GDScript
class_name ActionMoveCamera
|
|
extends ClickAction
|
|
|
|
@export var target_node: NodePath
|
|
|
|
func execute(clickable: Node, hit_position: Vector3) -> void:
|
|
var target_location = clickable.get_node(target_node) as Node3D
|
|
|
|
if target_location:
|
|
ClickManager.request_camera_move(target_location.global_transform)
|