Enable unit selection and path visualization logic via Cursor interactions.

This commit is contained in:
gdz
2025-12-26 23:11:33 +01:00
parent c4b2d6ff94
commit 2f82eb80e4
5 changed files with 42 additions and 65 deletions

View File

@@ -47,7 +47,7 @@ func _ready() -> void:
# Pathing and Grid
set_process(false)
_pathFollow.rotates = false
#_pathFollow.rotates = false
cell = grid.calculateGridCoordinates(position)
position = grid.calculateMapPosition(cell)
@@ -55,7 +55,8 @@ func _ready() -> void:
# We create the curve resource here because creating it in the editor prevents
# us from moving the unit.
if not Engine.is_editor_hint():
_path.curve = Curve2D.new()
pass
#_path.curve = Curve2D.new()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void: