Files
ichni_Creator_Studio/Assets/ThemeBundles/Basic/Scripts/NoteVisual/BasicNoteMissPale.cs

60 lines
1.8 KiB
C#
Raw Normal View History

using System;
2025-02-02 08:34:54 -05:00
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using Ichni.RhythmGame.Beatmap;
2025-02-02 08:34:54 -05:00
using UnityEngine;
namespace Ichni.RhythmGame.ThemeBundles.Basic
{
2025-02-09 11:09:54 -05:00
public class BasicNoteMissPale : NoteMissEffect
2025-02-02 08:34:54 -05:00
{
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 EffectBase_BM ConvertToBM()
{
return new Beatmap.BasicNoteMissPale_BM(effectTime, note.elementGuid);
}
}
namespace Beatmap
{
2025-02-09 11:09:54 -05:00
public class BasicNoteMissPale_BM : NoteMissEffect_BM
{
public BasicNoteMissPale_BM()
{
}
public BasicNoteMissPale_BM(float effectTime, Guid elementGuid) : base(effectTime, elementGuid)
{
}
public override EffectBase ConvertToGameType()
{
return new BasicNoteMissPale(GameElement_BM.GetElement(attachedNoteID) as NoteBase);
}
}
2025-02-02 08:34:54 -05:00
}
}