2025-06-03 02:42:28 -04:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Ichni.RhythmGame.Beatmap;
|
|
|
|
|
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
|
2025-07-21 05:42:20 -04:00
|
|
|
using Lean.Pool;
|
2025-06-03 02:42:28 -04:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
|
|
|
|
{
|
|
|
|
|
public class DTMNoteGoodBurst : NoteGoodEffect
|
|
|
|
|
{
|
|
|
|
|
private ParticleSystem effectParticle;
|
|
|
|
|
|
|
|
|
|
public DTMNoteGoodBurst(NoteVisualBase noteVisual)
|
|
|
|
|
{
|
|
|
|
|
this.note = noteVisual.note;
|
|
|
|
|
this.noteVisual = noteVisual;
|
|
|
|
|
this.effectTime = 0f;
|
|
|
|
|
}
|
|
|
|
|
public override void Recover()
|
|
|
|
|
{
|
|
|
|
|
noteVisual.noteMain.SetActive(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Adjust()
|
|
|
|
|
{
|
2025-07-21 05:42:20 -04:00
|
|
|
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[1], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
2025-06-03 02:42:28 -04:00
|
|
|
effectParticle.Play();
|
|
|
|
|
noteVisual.noteMain.SetActive(false);
|
2025-07-21 05:42:20 -04:00
|
|
|
LeanPool.Despawn(effectParticle.gameObject, 1);
|
2025-06-03 02:42:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override EffectBase_BM ConvertToBM()
|
|
|
|
|
{
|
|
|
|
|
return new DTMNoteGoodBurst_BM(effectTime);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Beatmap
|
|
|
|
|
{
|
|
|
|
|
public class DTMNoteGoodBurst_BM : NoteGoodEffect_BM
|
|
|
|
|
{
|
|
|
|
|
public DTMNoteGoodBurst_BM()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DTMNoteGoodBurst_BM(float effectTime) : base(effectTime)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
|
|
|
|
{
|
|
|
|
|
return new DTMNoteGoodBurst(attachedGameElement as NoteVisualBase);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|