challenge-editor/scene/card_state_machine/queue.gd

26 lines
424 B
GDScript3
Raw Normal View History

2024-09-24 11:59:54 +08:00
extends State
2024-09-25 18:04:02 +08:00
func enter_state(n):
var player:Card=get_player()
player.move_to(player.position,player.get_queue_position())
player.target=n
player.queue.emit()
pass
func update_state(delta):
pass
func update_state_phy(delta):
pass
func exit_state():
pass
func time_out():
pass
2024-09-25 23:56:53 +08:00
func process_message(type:String,n):
match type:
"mouse_enter":
get_player().up()
"mouse_exit":
get_player().down()
pass