基础内容-4
Tap,Stay,Flick基础构造
This commit is contained in:
@@ -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>
|
||||
/// 在效果的持续时间内,触发这个方法
|
||||
|
||||
Reference in New Issue
Block a user