mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Revert "Remove osu!catch GotoFrame usage"
This reverts commit 4406f44165
.
This commit is contained in:
parent
4406f44165
commit
6d4f9247ea
@ -9,7 +9,6 @@ using osu.Framework.Graphics.Animations;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Input.Bindings;
|
||||
using osu.Framework.Timing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Catch.Objects;
|
||||
@ -380,9 +379,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
}
|
||||
|
||||
currentCatcher.Show();
|
||||
|
||||
if (currentCatcher.Drawable.Clock is FramedOffsetClock offsetClock)
|
||||
offsetClock.Offset = -Time.Current;
|
||||
(currentCatcher.Drawable as IAnimation)?.GotoFrame(0);
|
||||
}
|
||||
|
||||
private void beginTrail()
|
||||
|
@ -71,8 +71,6 @@ namespace osu.Game.Skinning
|
||||
|
||||
if (timeReference != null)
|
||||
Clock = new FramedOffsetClock(timeReference.Clock) { Offset = -timeReference.AnimationStartTime };
|
||||
else
|
||||
Clock = new FramedOffsetClock(Clock);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user