小问题修复

This commit is contained in:
SoulliesOfficial
2026-07-14 14:29:33 -04:00
parent dbe7d99a90
commit 29c981eb58
13 changed files with 42921 additions and 2249 deletions

View File

@@ -26,10 +26,11 @@ namespace Ichni.RhythmGame
bool isFirstGenerated, GameElement parentElement)
{
base.Initialize(name, elementGuid, tags, isFirstGenerated, parentElement);
if (this.parentElement.submoduleList.Count == 0 ||
!this.parentElement.submoduleList.Exists(e => e is TransformSubmodule))
if ((this is Displacement || this is Swirl || this is Scale || this is LookAt) && (this.parentElement.submoduleList.Count == 0 ||
!this.parentElement.submoduleList.Exists(e => e is TransformSubmodule)))
{
LogWindow.Log("AnimationBase must be attached to a GameElement with TransformSubmodule", Color.red);
LogWindow.Log("Transform animation must be attached to a GameElement with TransformSubmodule", Color.red);
LogWindow.Log(this.elementName + " " + this.elementGuid.ToString(), Color.red);
}
// 向 ElementUpdateScheduler 注册 Phase.Animation

View File

@@ -238,6 +238,7 @@ namespace Ichni
musicPlayer.audioSource.clip = songInformation.song;
beatmapContainer.gameElementList.ForEach(gameElement =>
{
Debug.Log(gameElement.elementName + " " + gameElement.elementGuid);
gameElement.AfterInitialize();
gameElement.Refresh();
});