removed old code for selecting units (not working)
This commit is contained in:
@@ -31,15 +31,6 @@ func _input(event: InputEvent):
|
||||
if event.is_action_pressed("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)
|
||||
if _readyToSelect: _selectUnit()
|
||||
else: _deselectUnit()
|
||||
|
||||
Reference in New Issue
Block a user