This commit is contained in:
SoulliesOfficial
2025-07-10 08:42:30 -04:00
parent 150ef744e8
commit e483cfe502
286 changed files with 31518 additions and 947 deletions

View File

@@ -0,0 +1,77 @@
using System;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using Ichni.RhythmGame.Beatmap;
using Ichni.RhythmGame.ThemeBundles.Basic.Beatmap;
using UnityEngine;
namespace Ichni.RhythmGame.ThemeBundles.Basic
{
public class BasicNoteGoodBurst : NoteGoodEffect
{
private GameObject effectRing;
public BasicNoteGoodBurst(NoteVisualBase noteVisual)
{
this.note = noteVisual.note;
this.noteVisual = noteVisual;
this.effectRing = noteVisual.effectPartList[0];
this.effectTime = 0.1f;
}
public override void Recover()
{
effectRing.SetActive(false);
effectRing.transform.localScale = Vector3.zero;
effectRing.GetComponent<SpriteRenderer>().color = Color.white;
noteVisual.noteMain.SetActive(true);
if (noteVisual is BasicHoldVisualMesh holdVisualMesh)
{
holdVisualMesh.notePartList[1].SetActive(true);
holdVisualMesh.notePartList[2].SetActive(true);
}
}
public override void Adjust()
{
effectRing.gameObject.SetActive(true);
effectRing.transform.DOScale(Vector3.one * 0.5f, effectTime).SetEase(Ease.OutQuad);
effectRing.GetComponent<SpriteRenderer>().DOFade(0, effectTime).SetEase(Ease.OutQuad).OnComplete(() => effectRing.SetActive(false));
noteVisual.noteMain.SetActive(false);
if (noteVisual is BasicHoldVisualMesh holdVisualMesh)
{
holdVisualMesh.notePartList[1].SetActive(false);
holdVisualMesh.notePartList[2].SetActive(false);
}
}
public override EffectBase_BM ConvertToBM()
{
return new BasicNoteGoodBurst_BM(effectTime);
}
}
namespace Beatmap
{
public class BasicNoteGoodBurst_BM : NoteGoodEffect_BM
{
public BasicNoteGoodBurst_BM()
{
}
public BasicNoteGoodBurst_BM(float effectTime) : base(effectTime)
{
}
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new BasicNoteGoodBurst(attachedGameElement as NoteVisualBase);
}
}
}
}