基础内容-7

Trail
完整Note
This commit is contained in:
SoulliesOfficial
2025-02-02 08:34:54 -05:00
parent 38ec74bfef
commit efca87e9cd
60 changed files with 1503 additions and 228 deletions

View File

@@ -0,0 +1,55 @@
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
namespace Ichni.RhythmGame.ThemeBundles.Basic
{
public class BasicNoteMissPale : NoteEffectBase
{
Renderer noteMainRenderer;
public BasicNoteMissPale(NoteBase note)
{
this.note = note;
this.noteVisual = note.noteVisual.GetComponent<BasicNoteVisual>();
this.noteMainRenderer = noteVisual.noteMain.GetComponent<Renderer>();
}
public override void Recover()
{
noteVisual.noteMain.SetActive(true);
noteMainRenderer.material.SetColor("_BaseColor", Color.white);
}
public override void Adjust()
{
noteVisual.noteMain.SetActive(true);
noteMainRenderer.material.SetColor("_BaseColor", Color.white / 2f);
noteMainRenderer.material.DOColor(Color.clear, 0.2f).SetEase(Ease.OutQuad);
}
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;
}
}
}