fix units not being controlled when off screen
This commit is contained in:
@@ -45,8 +45,6 @@ func _physics_process(delta: float) -> void:
|
|||||||
|
|
||||||
func _input(event: InputEvent) -> void:
|
func _input(event: InputEvent) -> void:
|
||||||
super._input(event)
|
super._input(event)
|
||||||
if not _is_on_screen:
|
|
||||||
return
|
|
||||||
|
|
||||||
if event is InputEventMouseButton and _selected:
|
if event is InputEventMouseButton and _selected:
|
||||||
var button_event := event as InputEventMouseButton
|
var button_event := event as InputEventMouseButton
|
||||||
|
|||||||
Reference in New Issue
Block a user