local LD = require("design.LevelDesignLibrary")
local player
local bClimbBanter = false
local bCantJump = false
function OnScriptLoaded(level, obj)
  player = game.Player.FindPlayer()
end
function OnUpdate(level, obj)
  if player:IsPlayingMove("MOV_SonBoost4MeterCrawlStand") and bClimbBanter == false and player:IsInsideEntityZone(GameObjects.Btr_BlueDoorBowl_Climb) == true and _G.CheckBridgeState() == false then
    bClimbBanter = true
    game.Audio.PlayBanter("BlueDoorBowl_Climb")
    GameObjects.Btr_BlueDoorBowl_Climb:Hide()
  end
end
function OnSaveCheckpoint(level, obj)
  return {bClimbBanter = bClimbBanter, bCantJump = bCantJump}
end
function OnRestoreCheckpoint(level, obj, savedInfo)
  bClimbBanter = savedInfo.bClimbBanter
  bCantJump = savedInfo.bCantJump
end
function CantJump()
  if _G.CheckBridgeState() == false then
    game.Audio.PlayBanter("BlueDoorBowl_CantJump")
    LD.CallFunctionAfterDelay(CantJumpLinger, 20)
    GameObjects.Btr_BlueDoorBowl_CantJump:Hide()
  end
end
function CantJumpLinger()
  if _G.CheckBridgeState() == false then
    game.Audio.PlayBanter("BlueDoorBowl_CantJump_Linger")
  end
end
