mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 08:32:55 +08:00
Merge branch 'facade-container' of https://github.com/nyquillerium/osu into facade-container
This commit is contained in:
commit
376bed3a30
@ -113,7 +113,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
var amount = (float)Interpolation.ApplyEasing(easing, Math.Min(elapsedDuration / duration, 1));
|
var amount = (float)Interpolation.ApplyEasing(easing, Math.Min(elapsedDuration / duration, 1));
|
||||||
|
|
||||||
// Interpolate the position of the logo, where amount 0 is where the logo was when it first began interpolating, and amount 1 is the target location.
|
// Interpolate the position of the logo, where amount 0 is where the logo was when it first began interpolating, and amount 1 is the target location.
|
||||||
Logo.Position = Vector2.Lerp((Vector2)startPosition, localPos, amount);
|
Logo.Position = Vector2.Lerp(startPosition.Value, localPos, amount);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user