小问题修复
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user