challenge-editor/scene/card_state_machine/discard.gd

25 lines
421 B
GDScript3
Raw Normal View History

2024-09-25 11:52:36 +08:00
extends State
2024-09-25 18:04:02 +08:00
func enter_state(n):
var player:Card=get_player()
var target_pos=player.get_machine().get_discard_pos()
player.move_to(player.position,target_pos)
func update_state(delta):
pass
func update_state_phy(delta):
pass
func exit_state():
pass
func time_out():
pass
func process_message(type:String,n):
match type:
"move_finished":
print("删除")
get_player().queue_free()
return
pass