From 2a8b4a98f9b4ea67ab066e80b03d36ea5cdd9821 Mon Sep 17 00:00:00 2001 From: march3 Date: Sun, 19 Mar 2023 14:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=AA=E9=98=B3=E7=B3=BB=E4=B8=89=E4=BD=93?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simulators/ursina/ui/control_handler.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/simulators/ursina/ui/control_handler.py b/simulators/ursina/ui/control_handler.py index 3be84d9..6fd9e27 100644 --- a/simulators/ursina/ui/control_handler.py +++ b/simulators/ursina/ui/control_handler.py @@ -185,16 +185,7 @@ class ControlHandler(EventHandler): return self.on_searching_bodies_click() elif key == 'o': # 重新开始 - paused = application.paused - if paused: # 如果是暂停状态,先不暂停,等重新开始后再暂停 - application.paused = False self.on_reset_button_click() - if paused: - def application_paused(): - application.paused = True - - UrsinaEvent.on_application_run_callback_subscription(application_paused) - elif key == 'i': # 拖尾开关 if self.ui.on_off_trail.value == self.ui.trail_button_text: self.ui.on_off_trail.value = self.ui.no_trail_button_text -- GitLab