harts_speed = 4 # A ボタンが押されている場合 if Input.press?(Input::A) harts_speed = 5 end $game_player.harts_dash(harts_speed)