61 lines
1.8 KiB
C#
61 lines
1.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DG.Tweening;
|
|
using Ichni.RhythmGame;
|
|
using Ichni.RhythmGame.Beatmap;
|
|
using Ichni.RhythmGame.ThemeBundles.Basic.Beatmap;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.RhythmGame.ThemeBundles.Basic
|
|
{
|
|
public class BasicNoteGenerateExpand : NoteGenerateEffect
|
|
{
|
|
public BasicNoteGenerateExpand(NoteBase note)
|
|
{
|
|
this.note = note;
|
|
this.generateTime = 1f;
|
|
this.effectTime = 0.1f;
|
|
this.noteVisual = note.noteVisual.GetComponent<BasicNoteVisual>();
|
|
}
|
|
|
|
public override void Recover()
|
|
{
|
|
noteVisual.noteMain.SetActive(false);
|
|
noteVisual.noteMain.transform.localScale = Vector3.zero;
|
|
}
|
|
|
|
public override void Adjust()
|
|
{
|
|
noteVisual.noteMain.SetActive(true);
|
|
noteVisual.noteMain.transform.DOScale(Vector3.one, 0.1f).SetEase(Ease.OutBack);
|
|
}
|
|
|
|
public override EffectBase_BM ConvertToBM()
|
|
{
|
|
return new BasicNoteGenerateExpand_BM(effectTime, generateTime, note.elementGuid);
|
|
}
|
|
}
|
|
|
|
namespace Beatmap
|
|
{
|
|
public class BasicNoteGenerateExpand_BM : NoteGenerateEffect_BM
|
|
{
|
|
public BasicNoteGenerateExpand_BM()
|
|
{
|
|
|
|
}
|
|
|
|
public BasicNoteGenerateExpand_BM(float effectTime, float generateTime, Guid attachedNoteID) :
|
|
base(effectTime, generateTime, attachedNoteID)
|
|
{
|
|
|
|
}
|
|
|
|
public override EffectBase ConvertToGameType()
|
|
{
|
|
return new BasicNoteGenerateExpand(GameElement_BM.GetElement(attachedNoteID) as NoteBase);
|
|
}
|
|
}
|
|
}
|
|
} |