Rewind pooled DHOs into better states

This commit is contained in:
smoogipoo
2020-11-25 17:54:03 +09:00
parent dcfd9517b7
commit c744db1b57
3 changed files with 21 additions and 11 deletions

View File

@ -259,7 +259,17 @@ namespace osu.Game.Rulesets.Objects.Drawables
// If not loaded, the state update happens in LoadComplete(). Otherwise, the update is scheduled to allow for lifetime updates.
if (IsLoaded)
Schedule(() => updateState(ArmedState.Idle, true));
{
Scheduler.Add(() =>
{
if (Result.IsHit)
updateState(ArmedState.Hit, true);
else if (Result.HasResult)
updateState(ArmedState.Miss, true);
else
updateState(ArmedState.Idle, true);
});
}
hasHitObjectApplied = true;
}