feat: Introduce PlayerMovementManager to manage player movement, rotation, attack mode push mechanics, and grid-based collision detection.
This commit is contained in:
@@ -272,7 +272,7 @@ func _ensure_shortcut_label(btn: Button, button_name: String):
|
||||
btn.add_child(shortcut_lbl)
|
||||
|
||||
func _on_joystick_direction(direction: Vector2i):
|
||||
if local_player and local_player.has_method("simple_move_to"):
|
||||
if local_player and local_player.movement_manager:
|
||||
var target_pos = local_player.current_position + direction
|
||||
local_player.movement_manager.simple_move_to(target_pos)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user