Files
ichni_Creator_Studio/Assets/ThemeBundles/DepartureToMultiverse/Scripts/NoteEffect/DTMNoteBadBurst.cs
SoulliesOfficial bbb8057b08 Hold
2025-07-20 13:39:29 -04:00

67 lines
2.1 KiB
C#

using System.Collections;
using System.Collections.Generic;
using Ichni.Editor;
using Ichni.RhythmGame.Beatmap;
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
using Lean.Pool;
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.effectParticle = noteVisual.effectPrefabList[2].GetComponent<ParticleSystem>();
this.effectTime = 0f;
}
public override void Recover()
{
// noteVisual.noteMain.SetActive(true);
}
public override void Adjust()
{
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[0], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
effectParticle.Play();
noteVisual.noteMain.SetActive(false);
LeanPool.Despawn(effectParticle.gameObject, 1);
}
public override EffectBase_BM ConvertToBM()
{
return new DTMNoteBadBurst_BM(effectTime);
}
public override void SetUpInspector()
{
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
var container = inspector.GenerateContainer("DTM Note Bad Burst");
}
}
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);
}
}
}
}