Fix hit explosions not following the scroll direction

This commit is contained in:
smoogipoo 2018-06-08 15:23:47 +09:00
parent d73c2a1654
commit 7deaffdb62
2 changed files with 4 additions and 2 deletions

View File

@ -148,7 +148,10 @@ internal void OnJudgement(DrawableHitObject judgedObject, Judgement judgement)
if (!judgement.IsHit || !judgedObject.DisplayJudgement)
return;
explosionContainer.Add(new HitExplosion(judgedObject));
explosionContainer.Add(new HitExplosion(judgedObject)
{
Anchor = direction == ScrollingDirection.Up ? Anchor.TopCentre : Anchor.BottomCentre
});
}
public bool OnPressed(ManiaAction action)

View File

@ -21,7 +21,6 @@ public HitExplosion(DrawableHitObject judgedObject)
{
bool isTick = judgedObject is DrawableHoldNoteTick;
Anchor = Anchor.TopCentre;
Origin = Anchor.Centre;
RelativeSizeAxes = Axes.X;