Modified the generator panel currently broken doesn't seem to get picked up like other intractables
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user