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:
2024-07-17 01:56:23 -05:00
parent e7f51c66e5
commit f59e888ad5
7 changed files with 154 additions and 0 deletions

View 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")