using System.Collections; using System.Collections.Generic; using Ichni.Editor; using Ichni.RhythmGame.Beatmap; using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap; 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.effectParticle = noteVisual.effectPartList[1].GetComponent(); this.effectTime = 0f; } public override void Recover() { effectParticle.Stop(); noteVisual.noteMain.SetActive(true); } public override void Adjust() { effectParticle.Play(); noteVisual.noteMain.SetActive(false); } public override EffectBase_BM ConvertToBM() { return new DTMNoteGoodBurst_BM(effectTime); } public override void SetUpInspector() { IHaveInspection inspector = EditorManager.instance.uiManager.inspector; var container = inspector.GenerateContainer("DTM Note Good Burst"); } } 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); } } } }