基础内容-6
技术性调整; Note效果;
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
|
||||
{
|
||||
private GameObject effectRing;
|
||||
|
||||
public void Initialize(NoteBase note)
|
||||
public BasicNotePerfectBurst(NoteBase note)
|
||||
{
|
||||
this.note = note;
|
||||
this.noteVisual = note.noteVisual.GetComponent<BasicNoteVisual>();
|
||||
@@ -31,5 +31,28 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
|
||||
effectRing.GetComponent<SpriteRenderer>().DOFade(0, 0.1f).SetEase(Ease.OutBack).OnComplete(() => effectRing.SetActive(false));
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
}
|
||||
|
||||
public override EffectState CheckEffectState()
|
||||
{
|
||||
float songTime = EditorManager.instance.songModule.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user