Fixed a typo in main.gd. Selecting units is possible now.
This commit is contained in:
@@ -26,7 +26,7 @@ func _ready() -> void:
|
||||
if $Player.is_node_ready():
|
||||
$Player.setup($Map.getGrid())
|
||||
$GameBoard/Cursor.moved.connect($Player.setTarget)
|
||||
$GameBoard/Cursor.accept_pressed.connect($Player.selectedUnit)
|
||||
$GameBoard/Cursor.accept_pressed.connect($Player.selectUnit)
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
|
||||
Reference in New Issue
Block a user