1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Disable automatic lifetime management

This commit is contained in:
smoogipoo 2020-11-10 01:30:25 +09:00
parent ac47399e6e
commit d4d3a6621e

View File

@ -109,6 +109,8 @@ namespace osu.Game.Rulesets.Objects.Drawables
public override bool RemoveCompletedTransforms => false;
protected override bool RequiresChildrenUpdate => true;
public override bool ResetLifetimeWhenAssigned => false; // DHOs do their own lifetime management.
public override bool IsPresent => base.IsPresent || (State.Value == ArmedState.Idle && Clock?.CurrentTime >= LifetimeStart);
private readonly Bindable<ArmedState> state = new Bindable<ArmedState>();