Hold
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using Dreamteck.Splines;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.Basic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
@@ -22,7 +17,14 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public sealed override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
noteVisual.noteMain.transform.localScale = Vector3.zero;
|
||||
if (noteVisual is DTMNoteVisualHold noteVisualHold)
|
||||
{
|
||||
noteVisualHold.meshGenerator.size = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
noteVisual.noteMain.transform.localScale = Vector3.zero;
|
||||
}
|
||||
}
|
||||
|
||||
public override void PreExecute()
|
||||
@@ -33,12 +35,26 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public override void Execute()
|
||||
{
|
||||
float e = AnimationCurveEvaluator.Evaluate(AnimationCurveType.OutQuad, effectProgressPercent);
|
||||
noteVisual.noteMain.transform.localScale = e * Vector3.one;
|
||||
if (noteVisual is DTMNoteVisualHold noteVisualHold)
|
||||
{
|
||||
noteVisualHold.meshGenerator.size = e;
|
||||
}
|
||||
else
|
||||
{
|
||||
noteVisual.noteMain.transform.localScale = e * Vector3.one;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
noteVisual.noteMain.transform.localScale = Vector3.one;
|
||||
if (noteVisual is DTMNoteVisualHold noteVisualHold)
|
||||
{
|
||||
noteVisualHold.meshGenerator.size = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
noteVisual.noteMain.transform.localScale = Vector3.one;
|
||||
}
|
||||
}
|
||||
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
|
||||
Reference in New Issue
Block a user