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 DTMNoteBadBurst : NoteBadEffect
|
|
|
|
|
{
|
|
|
|
|
private ParticleSystem effectParticle;
|
|
|
|
|
|
|
|
|
|
public DTMNoteBadBurst(NoteVisualBase noteVisual)
|
|
|
|
|
{
|
|
|
|
|
this.note = noteVisual.note;
|
|
|
|
|
this.noteVisual = noteVisual;
|
|
|
|
|
this.effectTime = 0f;
|
|
|
|
|
}
|
2025-07-21 05:42:20 -04:00
|
|
|
|
2025-06-03 02:42:28 -04:00
|
|
|
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[2], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
2025-08-11 14:04:06 -04:00
|
|
|
effectParticle.transform.SetParent(GameManager.instance.cameraManager.gameCamera.transform);
|
2025-06-03 02:42:28 -04:00
|
|
|
effectParticle.Play();
|
|
|
|
|
noteVisual.noteMain.SetActive(false);
|
2025-10-02 23:49:18 -04:00
|
|
|
|
|
|
|
|
if (note is Hold)
|
|
|
|
|
{
|
|
|
|
|
noteVisual.extraPartList[0].gameObject.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 DTMNoteBadBurst_BM(effectTime);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Beatmap
|
|
|
|
|
{
|
|
|
|
|
public class DTMNoteBadBurst_BM : NoteBadEffect_BM
|
|
|
|
|
{
|
|
|
|
|
public DTMNoteBadBurst_BM()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DTMNoteBadBurst_BM(float effectTime) : base(effectTime)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
|
|
|
|
{
|
|
|
|
|
return new DTMNoteBadBurst(attachedGameElement as NoteVisualBase);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|