challenge-editor/scene/card_state_machine/focus.gd
2024-09-25 18:04:02 +08:00

24 lines
382 B
GDScript

extends State
func enter_state(n):
get_player().up()
pass
func update_state(delta):
if Input.is_action_just_pressed("mouse_left"):
change_to_state("selected")
return
func update_state_phy(delta):
pass
func exit_state():
get_player().down()
pass
func time_out():
pass
func process_message(type:String,n):
match type:
"mouse_exit":
change_to_state("idle")
pass