58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using Ichni.RhythmGame.Beatmap;
|
||
|
|
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
|
||
|
|
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.effectPartList[2].GetComponent<ParticleSystem>();
|
||
|
|
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 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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|