调整谱面开放

This commit is contained in:
SoulliesOfficial
2026-04-01 01:35:17 -04:00
parent 25b6da25ae
commit e9393c64f7
29 changed files with 466 additions and 2802 deletions

View File

@@ -119,8 +119,10 @@ namespace Ichni.RhythmGame
public void UpdateColor(bool refreshAll = true)
{
if(colorSubmodule == null) return;
bool willRefresh = false;
if (colorSubmodule.baseColorDirtyMark)
{
//在动画物体中改变currentColor

View File

@@ -131,6 +131,8 @@ namespace Ichni.RhythmGame
public void UpdateTransform(bool refreshAll = true)
{
if(transformSubmodule == null) return;
GameElement attachedGameElement = transformSubmodule.attachedGameElement;
bool willRefresh = false;

View File

@@ -39,7 +39,7 @@ namespace Ichni.RhythmGame
#region [] Main Update
private void Update()
{
if (!GameManager.Instance.songPlayer.isUpdating)
if (!GameManager.Instance.songPlayer.isUpdating || effectSubmodule == null)
{
return;
}

View File

@@ -88,24 +88,28 @@ namespace Ichni
private void LateUpdate()
{
if (!songPlayer.isUpdating) return;
trackManager.ManualLateUpdate(SongTime);
noteManager.ManualLateUpdate(SongTime);
for(int i = 0; i < activeColorSubmodules.Count; i++)
if (songPlayer.isUpdating)
{
activeColorSubmodules[i].UpdateColor(true);
trackManager.ManualLateUpdate(SongTime);
noteManager.ManualLateUpdate(SongTime);
for (int i = 0; i < activeColorSubmodules.Count; i++)
{
activeColorSubmodules[i].UpdateColor(true);
}
for (int i = 0; i < activeTransformSubmodules.Count; i++)
{
activeTransformSubmodules[i].UpdateTransform(true);
}
}
for(int i = 0; i < activeTransformSubmodules.Count; i++)
if (songPlayer.isStarting || songPlayer.isPlaying)
{
activeTransformSubmodules[i].UpdateTransform(true);
}
for(int i = 0; i < activeDirtyMarkSubmodules.Count; i++)
{
activeDirtyMarkSubmodules[i]?.dirtyMarkSubmodule?.ExecuteDeferredRefresh();
for (int i = 0; i < activeDirtyMarkSubmodules.Count; i++)
{
activeDirtyMarkSubmodules[i]?.dirtyMarkSubmodule?.ExecuteDeferredRefresh();
}
}
}
}