2024-09-24 11:59:54 +08:00
|
|
|
extends State
|
|
|
|
|
2024-09-24 17:26:44 +08:00
|
|
|
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
|
2024-09-24 11:59:54 +08:00
|
|
|
|
2024-09-24 17:26:44 +08:00
|
|
|
func time_out():
|
|
|
|
pass
|
|
|
|
func process_message(type:String,n):
|
|
|
|
match type:
|
|
|
|
"mouse_exit":
|
|
|
|
change_to_state("idle")
|
|
|
|
|
2024-09-24 11:59:54 +08:00
|
|
|
pass
|