diff --git a/OpenTaiko/src/Stages/07.Game/Taiko/CAct演奏Drums背景.cs b/OpenTaiko/src/Stages/07.Game/Taiko/CAct演奏Drums背景.cs index 7a705017..43d52765 100644 --- a/OpenTaiko/src/Stages/07.Game/Taiko/CAct演奏Drums背景.cs +++ b/OpenTaiko/src/Stages/07.Game/Taiko/CAct演奏Drums背景.cs @@ -156,9 +156,9 @@ namespace TJAPlayer3 : downDirs[random.Next(0, downDirs.Length)]; DownScript = new ScriptBG($@"{downPath}{Path.DirectorySeparatorChar}Script.lua"); - DownScript.Init(); + DownScript?.Init(); - IsDownNotFound = false; + if (DownScript.Exists()) IsDownNotFound = false; } else { @@ -296,8 +296,8 @@ namespace TJAPlayer3 if (!IsUpNotFound) { - if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) UpScript.Update(); - UpScript.Draw(); + if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) UpScript?.Update(); + UpScript?.Draw(); if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] == (int)Difficulty.Tower) { #region [Tower animations variables] @@ -643,8 +643,8 @@ namespace TJAPlayer3 { if (!IsDownNotFound) { - if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) DownScript.Update(); - DownScript.Draw(); + if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) DownScript?.Update(); + DownScript?.Draw(); } }