基础内容-10

保存测试
This commit is contained in:
SoulliesOfficial
2025-02-07 10:49:26 -05:00
parent 6559751b8e
commit 1be8a5a900
9 changed files with 456 additions and 344 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame.Beatmap;
using Lean.Pool;
using UnityEngine;
@@ -31,7 +32,9 @@ namespace Ichni.RhythmGame
{
public override void SaveBM()
{
matchedBM = new Beatmap.ElementFolder_BM(elementName, elementGuid, tags, parentElement.matchedBM);
matchedBM = parentElement != null ?
new ElementFolder_BM(elementName, elementGuid, tags, parentElement.matchedBM) :
new ElementFolder_BM(elementName, elementGuid, tags, null);
}
}