Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何让 Ursina 引擎update()在特定条件后每帧停止调用函数,同时运行脚本的其余部分
update()
终止我的application.quit()脚本并app.destroy()关闭窗口,同时仍调用update()每一帧。
application.quit()
app.destroy()
您可以在update()函数中以警卫的形式处理这种情况:
def update(): if condition: return # normal code...