mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
fixed object scale upon hit
This commit is contained in:
parent
c63d1962f1
commit
9a5127d506
@ -29,15 +29,14 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
{
|
||||
if (!(drawable is DrawableHitCircle d))
|
||||
return;
|
||||
|
||||
d.ApproachCircle.Hide();
|
||||
var h = d.HitObject;
|
||||
|
||||
using (d.BeginAbsoluteSequence(h.StartTime - h.TimePreempt))
|
||||
{
|
||||
var origScale = d.Scale;
|
||||
d.ScaleTo(1.1f);
|
||||
d.ScaleTo(origScale, h.TimePreempt);
|
||||
d.ScaleTo(1.1f, 1) // if duration = 0 then components (i.e. flash) scale with it -> we don't want that
|
||||
.Then()
|
||||
.ScaleTo(origScale, h.TimePreempt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user