function BreakOutOver() local Event = EventClass.Event; Event:LockPlayer(); coroutine.yield(); local stage = Event:GetMiniGameStage(); Event:PlaySe(soundList.SoundID.SE_blackhall_disappear); Event:Print("/vnGame Over/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); if ( stage > 1 ) then Event:SetStage(stage - 1); Event:Print("Current Record: Stage "..Event:GetStage().."/r"); end -- ベスト記録を表示する if ( Event:GetBestStage() > 0 ) then -- パーフェクトクリアの場合 if ( Event:GetBestStage() > Event:GetMiniGameMaxStage() ) then Event:Print("Best Record: Perfect!/b/co"); -- 通常クリアの場合 elseif ( Event:GetBestStage() == Event:GetMiniGameMaxStage() ) then Event:Print("Best Record: Cleared/b/co"); -- クリアなし else Event:Print("Best Record: Stage "..Event:GetBestStageStr().."/b/co"); end else -- 記録なし Event:Print("Best Record: N/A/b/co"); end Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:Print("Try again?/b/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if ( Event:GetSelect() == 0 ) then Event:CloseMessage(); coroutine.yield(); -- ブロック崩しを開始する Event:SetStage(1); Event:Print("Stage "..Event:GetStage().."     /b/cl"); Event:Print("Start!!/b/co"); Event:WaitContinue(); coroutine.yield(); Event:CloseMessage(); coroutine.yield(); Event:UnlockPlayer(); coroutine.yield(); Event:SetMiniGameStage(1); Event:ContinueMiniGame(); return; end Event:CloseMessage(); coroutine.yield(); Event:Wait(1.0) coroutine.yield(); Event:FadeOut(); Event:Wait(1.0) coroutine.yield(); Event:SetPlayerDirection(0); coroutine.yield(); Event:DestroyMiniGame(); Event:UnlockPlayer(); Event:SetMap("D_23_2","-gDebug"); coroutine.yield(); end