Created a Generator Panel with Key and Shape keyed the button being pressed and made it animate when clicked in game
This commit is contained in:
10
Assets/scripts/Generator Panel.gd
Normal file
10
Assets/scripts/Generator Panel.gd
Normal file
@ -0,0 +1,10 @@
|
||||
extends StaticBody3D
|
||||
|
||||
@export var promt_message:String = "press e"
|
||||
@export var promt_key:String
|
||||
|
||||
signal Generator_Started
|
||||
|
||||
func interact(player):
|
||||
$AnimationPlayer.play("Press")
|
||||
emit_signal("Generator_Started")
|
||||
Reference in New Issue
Block a user