From 73b41dcde39df5fb7a93b4a5d33ceb6814bac538 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Thu, 22 Sep 2022 16:47:51 -0300 Subject: [PATCH] disable monitor key if not debugging --- godot/monitor/Monitor.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/godot/monitor/Monitor.gd b/godot/monitor/Monitor.gd index 85238fd..b814bd8 100644 --- a/godot/monitor/Monitor.gd +++ b/godot/monitor/Monitor.gd @@ -133,11 +133,11 @@ func _physics_process(_delta: float) -> void: frames.append(frame) - if Input.is_action_just_pressed("Send"): + if debug and Input.is_action_just_pressed("Send"): stop_monitor() send_data() else: - if Input.is_action_just_pressed("Send"): + if debug and Input.is_action_just_pressed("Send"): start_monitor() else: get_tree().paused = false -- 2.30.2