排障 小修改

This commit is contained in:
2025-04-20 12:18:19 +08:00
parent 87e4a0aa98
commit 83241a5814
20 changed files with 4825 additions and 936 deletions

View File

@@ -67,7 +67,7 @@ namespace Ichni.RhythmGame
elementList.ForEach(element =>
{
#if UNITY_EDITOR
//#if UNITY_EDITOR
if (element == null)
@@ -80,12 +80,10 @@ namespace Ichni.RhythmGame
{
return;
}
#endif
//#endif
if (element is GameElement_BM gameElement)
{
#if UNITY_EDITOR
//Debug.Log("Adding element to identifier: " + gameElement.elementName + " " + gameElement.elementGuid);
#endif
GameElement_BM.identifier.Add(gameElement.elementGuid, gameElement);
}
@@ -97,6 +95,7 @@ namespace Ichni.RhythmGame
if (element == null)
{
Debug.LogError("Null element detected in elementList during low-priority execution. Skipping execution.");
return;
}