1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 00:02:54 +08:00

Add explicit delay + expire (this will be moved into the base DrawableHitObject later).

This commit is contained in:
smoogipooo 2017-03-29 13:19:48 +09:00
parent 1a56c48ddb
commit 1c503edad1

View File

@ -78,13 +78,15 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
protected override void UpdateState(ArmedState state)
{
Delay(HitObject.StartTime - Time.Current + Judgement.TimeOffset, true);
switch (State)
{
case ArmedState.Idle:
Delay(hit.HitWindowMiss);
break;
case ArmedState.Miss:
FadeOut(100);
Expire();
break;
case ArmedState.Hit:
bodyContainer.ScaleTo(0.8f, 400, EasingTypes.OutQuad);
@ -93,9 +95,10 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
bodyContainer.MoveToY(0, 500, EasingTypes.In);
FadeOut(600);
Expire();
break;
}
Expire();
}
}
}