Рефактор.

This commit is contained in:
sasha80
2023-09-29 15:13:23 +03:00
parent ea8c68fa9e
commit 839533fbf9

View File

@@ -100,7 +100,6 @@ func on_threat_lost(th) -> void:
## Обработчик нажатия кнопки "Строб". Управляет отображением строба
func on_button_strobe_pressed() -> void:
if not is_inside_tree(): return
drag_fsm = DragFSM.IDLE if $btn_strob.is_pressed() else DragFSM.OFF
$canvas.set_strob_visible(drag_fsm == DragFSM.IDLE)