radians hurhur
This commit is contained in:
@@ -20,5 +20,5 @@ func _on_lock_input_event(camera, event, position, normal, shape_idx):
|
|||||||
|
|
||||||
func _on_lever_input_event(camera, event, position, normal, shape_idx):
|
func _on_lever_input_event(camera, event, position, normal, shape_idx):
|
||||||
if event is InputEventMouseButton and event.is_action_pressed("interact"):
|
if event is InputEventMouseButton and event.is_action_pressed("interact"):
|
||||||
$Lever.rotation.z = $Lever.rotation.z + 180
|
$Lever.rotation.z = $Lever.rotation.z + PI
|
||||||
$".."/Light.visible = !$".."/Light.visible
|
$".."/Light.visible = !$".."/Light.visible
|
||||||
|
|||||||
Reference in New Issue
Block a user