local thisObj
local LD = require("design.LevelDesignLibrary")
function OnScriptLoaded(level, obj)
  thisObj = obj
  thisObj:FindSingleGOByName("S_CurveBreakable_DrawBridge1").LuaObjectScript.OnBroken(BreakableBroken)
  game.SubObject.Sleep(obj)
  game.SubObject.SetForgetOnCheckpoint(obj)
end
function BreakableBroken()
  thisObj:FindSingleGOByName("BridgeAnim"):PlayAnimToEnd()
  thisObj:FindSingleGOByName("BlockingCollision"):HideCollision()
  LD.PlaySound(thisObj:FindSingleGOByName("BridgeAnim"):FindSingleSoundEmitterByName("SNDBridge_03_Break"), "SND_BRK_Wooden_Bridge_Collapse_PeaksPass")
end
