challenge-editor/scene/card_state_machine/selected.gd

26 lines
488 B
GDScript3
Raw Normal View History

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):
get_player().position=get_player().get_parent().get_local_mouse_position()
if Input.is_action_just_released("mouse_left"):
change_to_state("selected_back")
return
if Input.is_action_just_pressed("mouse_right"):
change_to_state("selected_back")
return
pass
func update_state_phy(delta):
pass
func exit_state():
pass
func time_out():
pass
func process_message(type:String,n):
pass