特效改
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user