Files
HorrorGame/Assets/scripts/Generator Panel.gd

17 lines
298 B
GDScript

extends Interactable
signal Generator_Started
@onready var animate = $AnimationPlayer
func _ready():
animate.play("NoKey")
func interact(player):
print("Panel pressed")
if GlobalSettings.HasGeneratorKey:
animate.play("InsertKey")
animate.play("Press")
emit_signal("Generator_Started")