基础内容-4

Tap,Stay,Flick基础构造
This commit is contained in:
SoulliesOfficial
2025-01-28 11:58:39 -05:00
parent 70d06c6334
commit 552651efbc
14 changed files with 269 additions and 78 deletions

View File

@@ -45,6 +45,32 @@ namespace Ichni.RhythmGame
this.effectTime = effectTime;
this.nowEffectState = EffectState.Before;
}
public virtual void UpdateEffect()
{
EffectState state = CheckEffectState();
if (state == EffectState.Before && nowEffectState != EffectState.Before)
{
nowEffectState = EffectState.Before;
Recover();
}
else if (state == EffectState.Middle)
{
nowEffectState = EffectState.Middle;
Execute();
}
else if (state == EffectState.After && nowEffectState != EffectState.After)
{
nowEffectState = EffectState.After;
Adjust();
}
}
public virtual EffectState CheckEffectState()
{
throw new System.NotImplementedException();
}
/// <summary>
/// 在效果的持续时间内,触发这个方法