mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
return to use if for casting
This commit is contained in:
@ -33,9 +33,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
spinner.Disc.Enabled = false;
|
||||
spinner.Disc.OnUpdate += d =>
|
||||
{
|
||||
var s = d as SpinnerDisc;
|
||||
|
||||
if (s.Valid)
|
||||
if (d is SpinnerDisc s && s.Valid)
|
||||
s.Rotate(180 / MathF.PI * (float)s.Clock.ElapsedFrameTime / 40);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user