class MaybeSomeCharacter alias update_without_jumping update def update update_without_jumping if Input.trigger? Input::C @press_frame ||= 0 @press_frame += 1 else # jump! if @press_frame > 233 @press_frame = 0 end end end
204.02 KB, 下载次数: 45
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |