Modified the generator panel currently broken doesn't seem to get picked up like other intractables

This commit is contained in:
2024-07-17 21:23:40 -05:00
parent 0d055cf39a
commit 55cc2e7653
4 changed files with 189 additions and 10 deletions

View File

@ -1,10 +1,17 @@
extends StaticBody3D
signal Generator_Started
@export var promt_message:String = "press e"
@export var promt_key:String
signal Generator_Started
@onready var animate = $AnimationPlayer
func _ready():
animate.play("NoKey")
func interact(player):
$AnimationPlayer.play("Press")
print("Panel pressed")
if GlobalSettings.HasGeneratorKey:
animate.play("InsertKey")
animate.play("Press")
emit_signal("Generator_Started")