1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 12:02:55 +08:00

Add naive lifetime calculation for drawable HitObjects.

This commit is contained in:
Dean Herbert 2016-12-15 21:47:57 +09:00
parent 0a9e3ce1b0
commit d8e40d4fb1

View File

@ -44,6 +44,8 @@ namespace osu.Game.Modes.Objects.Drawables
UpdateState(state);
Expire(true);
if (State == ArmedState.Hit)
PlaySample();
}
@ -75,6 +77,8 @@ namespace osu.Game.Modes.Objects.Drawables
//force application of the state that was set before we loaded.
UpdateState(State);
Expire(true);
}
/// <summary>