@update_thread = Thread.new{loop{Graphics.update;sleep(9)}} if @update_thread.nil?
class << Graphics
alias origin_update update unless method_defined? :origin_update
def update
Thread.critical = true
origin_update
Thread.critical = false
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |