1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-03 03:20:16 +08:00

Revert "Remove osu!catch GotoFrame usage"

This reverts commit 4406f44165.
This commit is contained in:
Dean Herbert
2020-03-31 11:49:18 +09:00
Unverified
parent 4406f44165
commit 6d4f9247ea
2 changed files with 1 additions and 6 deletions
+1 -4
View File
@@ -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);
}
}