51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Ichni.RhythmGame.ThemeBundles.Basic;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.RhythmGame
|
|
{
|
|
public abstract class NotePerfectEffect : NoteEffectBase
|
|
{
|
|
public override EffectState CheckEffectState()
|
|
{
|
|
float songTime = EditorManager.instance.songInformation.songTime;
|
|
|
|
if (songTime < note.exactJudgeTime )
|
|
{
|
|
return EffectState.Before;
|
|
}
|
|
|
|
if (songTime >= note.exactJudgeTime &&
|
|
songTime <= note.exactJudgeTime + effectTime)
|
|
{
|
|
return EffectState.Middle;
|
|
}
|
|
|
|
if (songTime > note.exactJudgeTime + effectTime)
|
|
{
|
|
return EffectState.After;
|
|
}
|
|
|
|
return EffectState.Error;
|
|
}
|
|
|
|
}
|
|
|
|
namespace Beatmap
|
|
{
|
|
public abstract class NotePerfectEffect_BM : NoteEffectBase_BM
|
|
{
|
|
public NotePerfectEffect_BM()
|
|
{
|
|
|
|
}
|
|
|
|
public NotePerfectEffect_BM(float effectTime, Guid attachedNoteID) : base(effectTime, attachedNoteID)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
} |