效果模块,以及代码位置整理

This commit is contained in:
SoulliesOfficial
2025-02-16 11:15:42 -05:00
parent 934d1b5aba
commit d77e1a0f70
204 changed files with 1107 additions and 347 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using Ichni.Editor;
using Ichni.RhythmGame.Beatmap;
using UnityEngine;
@@ -15,6 +16,7 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
this.note = note;
this.noteVisual = note.noteVisual.GetComponent<BasicNoteVisual>();
this.noteMainRenderer = noteVisual.noteMain.GetComponent<Renderer>();
this.effectTime = 0.1f;
}
public override void Recover()
@@ -26,14 +28,20 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
public override void Adjust()
{
noteMainRenderer.material.DOColor(Color.clear, 0.2f).SetEase(Ease.OutQuad);
noteVisual.noteMain.transform.DOScale(Vector3.one * 1.5f, 0.2f).SetEase(Ease.OutQuad).OnComplete(() => noteVisual.noteMain.SetActive(false));
noteMainRenderer.material.DOColor(Color.clear, effectTime).SetEase(Ease.OutQuad);
noteVisual.noteMain.transform.DOScale(Vector3.one * 1.5f, effectTime).SetEase(Ease.OutQuad).OnComplete(() => noteVisual.noteMain.SetActive(false));
}
public override EffectBase_BM ConvertToBM()
{
return new Beatmap.BasicNoteBadExpand_BM(effectTime, note.elementGuid);
}
public override void SetUpInspector()
{
var container = inspector.GenerateContainer("Basic Note Bad Expand");
var effectTimeField = inspector.GenerateInputField(this, container, "Effect Time", nameof(effectTime));
}
}
namespace Beatmap