Init
This commit is contained in:
10
scripts/actions/action_move_camera.gd
Normal file
10
scripts/actions/action_move_camera.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user