challenge-editor/scene/card_state_machine/focus.gd
2024-09-24 17:26:44 +08:00

25 lines
400 B
GDScript

extends State
func enter_state(n):
get_player().up()
pass
func update_state(delta):
if Input.is_action_just_pressed("mouse_left"):
print("change")
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