Files
Undertaker-Simulator/scenes/coffin_slide_out.gd
T

9 lines
279 B
GDScript
Raw Normal View History

2026-01-30 13:09:55 +01:00
extends Node3D
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _input(event: InputEvent) -> void:
if event.is_action_pressed("slide_out"):
animation_player.play("CoffinSlideOut")
if event.is_action_pressed("ui_left"):
animation_player.play("RESET")