Enable unit selection and path visualization logic via Cursor interactions.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user