mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 23:22:54 +08:00
Remove osu!catch GotoFrame usage
This commit is contained in:
parent
0044d00d07
commit
4406f44165
@ -9,6 +9,7 @@ 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;
|
||||
@ -379,7 +380,9 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
}
|
||||
|
||||
currentCatcher.Show();
|
||||
(currentCatcher.Drawable as IAnimation)?.GotoFrame(0);
|
||||
|
||||
if (currentCatcher.Drawable.Clock is FramedOffsetClock offsetClock)
|
||||
offsetClock.Offset = -Time.Current;
|
||||
}
|
||||
|
||||
private void beginTrail()
|
||||
|
@ -71,6 +71,8 @@ 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