removed old code for selecting units (not working)

This commit is contained in:
gdz
2025-12-14 00:16:52 +01:00
parent 6bfc792cd0
commit fdcef59322

View File

@@ -31,15 +31,6 @@ func _input(event: InputEvent):
if event.is_action_pressed("Select"): if event.is_action_pressed("Select"):
print_debug("Action is Select") print_debug("Action is Select")
# Can't select from myself since (global_)position is alway 0,0
print("Event position: ", event.position)
print("My position is", position)
print("My global_position is", global_position)
if event.position == global_position:
_setSelected(true)
print_debug("Unit selected")
# We combine it with the fact that it is already marked (@see _markUnit) # We combine it with the fact that it is already marked (@see _markUnit)
if _readyToSelect: _selectUnit() if _readyToSelect: _selectUnit()
else: _deselectUnit() else: _deselectUnit()