mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use .Value instead of cast
Co-Authored-By: nyquillerium <nyquill@ppy.sh>
This commit is contained in:
@ -115,7 +115,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, LogoTrackingPosition, amount);
|
Logo.Position = Vector2.Lerp(startPosition.Value, LogoTrackingPosition, amount);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user