1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 03:02:56 +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) protected override void UpdateState(ArmedState state)
{ {
Delay(HitObject.StartTime - Time.Current + Judgement.TimeOffset, true);
switch (State) switch (State)
{ {
case ArmedState.Idle: case ArmedState.Idle:
Delay(hit.HitWindowMiss);
break; break;
case ArmedState.Miss: case ArmedState.Miss:
FadeOut(100); FadeOut(100);
Expire();
break; break;
case ArmedState.Hit: case ArmedState.Hit:
bodyContainer.ScaleTo(0.8f, 400, EasingTypes.OutQuad); bodyContainer.ScaleTo(0.8f, 400, EasingTypes.OutQuad);
@ -93,9 +95,10 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
bodyContainer.MoveToY(0, 500, EasingTypes.In); bodyContainer.MoveToY(0, 500, EasingTypes.In);
FadeOut(600); FadeOut(600);
Expire();
break; break;
} }
Expire();
} }
} }
} }