mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 22:22:56 +08:00
Add naive lifetime calculation for drawable HitObjects.
This commit is contained in:
parent
0a9e3ce1b0
commit
d8e40d4fb1
@ -44,6 +44,8 @@ namespace osu.Game.Modes.Objects.Drawables
|
|||||||
|
|
||||||
UpdateState(state);
|
UpdateState(state);
|
||||||
|
|
||||||
|
Expire(true);
|
||||||
|
|
||||||
if (State == ArmedState.Hit)
|
if (State == ArmedState.Hit)
|
||||||
PlaySample();
|
PlaySample();
|
||||||
}
|
}
|
||||||
@ -75,6 +77,8 @@ namespace osu.Game.Modes.Objects.Drawables
|
|||||||
|
|
||||||
//force application of the state that was set before we loaded.
|
//force application of the state that was set before we loaded.
|
||||||
UpdateState(State);
|
UpdateState(State);
|
||||||
|
|
||||||
|
Expire(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user