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
parent 4406f44165
commit 6d4f9247ea
2 changed files with 1 additions and 6 deletions

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()

View File

@ -71,8 +71,6 @@ namespace osu.Game.Skinning
if (timeReference != null)
Clock = new FramedOffsetClock(timeReference.Clock) { Offset = -timeReference.AnimationStartTime };
else
Clock = new FramedOffsetClock(Clock);
}
}