25 lines
421 B
GDScript
25 lines
421 B
GDScript
extends State
|
|
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
|