You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Undertaker-Simulator/scenes/coffin_openable.gd

10 lines
221 B

extends Node3D
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _on_lever_changed(isUp: bool) -> void:
if isUp:
animation_player.play("CoffinOpen")
else:
animation_player.play("CoffinClose")