特效改

This commit is contained in:
SoulliesOfficial
2025-08-09 05:39:32 -04:00
parent 2f461d1135
commit 87e11b6c8a
120 changed files with 667640 additions and 48356 deletions

View File

@@ -24,14 +24,30 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
}
public override void PreExecute()
{
breathParticle = LeanPool.Spawn(noteVisual.effectPrefabList[3], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
{
GameObject effectPrefab = null;
switch (EditorManager.instance.currentJudgeType)
{
case NoteBase.NoteJudgeType.Perfect:
effectPrefab = noteVisual.effectPrefabList[3];
break;
case NoteBase.NoteJudgeType.Good:
effectPrefab = noteVisual.effectPrefabList[4];
break;
case NoteBase.NoteJudgeType.Bad:
effectPrefab = noteVisual.effectPrefabList[5];
break;
default:
return;
}
breathParticle = LeanPool.Spawn(effectPrefab, noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
breathParticle.Play();
}
public override void Adjust()
{
breathParticle.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
breathParticle?.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
}
public override EffectBase_BM ConvertToBM()