mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Allow Apply() to be called multiple times sequentially
This commit is contained in:
@ -191,6 +191,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
|||||||
/// <param name="hitObject"></param>
|
/// <param name="hitObject"></param>
|
||||||
public virtual void Apply(HitObject hitObject)
|
public virtual void Apply(HitObject hitObject)
|
||||||
{
|
{
|
||||||
|
if (HitObject != null)
|
||||||
|
FreeAfterUse();
|
||||||
|
|
||||||
HitObject = hitObject;
|
HitObject = hitObject;
|
||||||
|
|
||||||
// Copy any existing result from the hitobject (required for rewind / judgement revert).
|
// Copy any existing result from the hitobject (required for rewind / judgement revert).
|
||||||
|
Reference in New Issue
Block a user