walk_to 不可 running
This commit is contained in:
parent
b0e3b1ad4d
commit
c5c86582a9
@ -385,6 +385,9 @@ func walk_to(global_pos: Vector2) -> Tween:
|
||||
elif global_pos.x > global_position.x:
|
||||
direction.x = 1.0
|
||||
_check_status(direction)
|
||||
# 禁用 RUNNING
|
||||
if current_status == PlayerAnimationConfig.MOVEMENT_RUNNING:
|
||||
current_status = PlayerAnimationConfig.MOVEMENT_WALKING
|
||||
_play_animation()
|
||||
tween.tween_property(self, "global_position", global_pos, time_cost)
|
||||
tween.tween_callback(_after_walk_to)
|
||||
|
Loading…
Reference in New Issue
Block a user