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