调整谱面开放
This commit is contained in:
@@ -119,8 +119,10 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public void UpdateColor(bool refreshAll = true)
|
||||
{
|
||||
if(colorSubmodule == null) return;
|
||||
|
||||
bool willRefresh = false;
|
||||
|
||||
|
||||
if (colorSubmodule.baseColorDirtyMark)
|
||||
{
|
||||
//在动画物体中改变currentColor
|
||||
|
||||
@@ -131,6 +131,8 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public void UpdateTransform(bool refreshAll = true)
|
||||
{
|
||||
if(transformSubmodule == null) return;
|
||||
|
||||
GameElement attachedGameElement = transformSubmodule.attachedGameElement;
|
||||
bool willRefresh = false;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user