6 lines
192 B
GDScript

extends CanvasLayer
func _on_FollowRotation_toggled(button_pressed: bool):
$"%Player/RemoteTransform".update_rotation = button_pressed
$"%Player".camera_relative_controls = !button_pressed