Replace "sprite" variable names in `CatcherTrailDisplay`

The `CatcherTrail` was originally named `CatcherTrailSprite`, but it is not a sprite anymore.
This commit is contained in:
ekrctb 2021-07-28 19:05:48 +09:00
parent a960a28d06
commit 90f3611ed0
1 changed files with 10 additions and 10 deletions

View File

@ -73,26 +73,26 @@ public void DisplayHyperDashAfterImage(CatcherAnimationState animationState, flo
public void DisplayDashTrail(CatcherAnimationState animationState, float x, Vector2 scale, bool hyperDashing) public void DisplayDashTrail(CatcherAnimationState animationState, float x, Vector2 scale, bool hyperDashing)
{ {
var sprite = createTrail(animationState, x, scale); var trail = createTrail(animationState, x, scale);
if (hyperDashing) if (hyperDashing)
hyperDashTrails.Add(sprite); hyperDashTrails.Add(trail);
else else
dashTrails.Add(sprite); dashTrails.Add(trail);
sprite.FadeTo(0.4f).FadeOut(800, Easing.OutQuint); trail.FadeTo(0.4f).FadeOut(800, Easing.OutQuint);
sprite.Expire(true); trail.Expire(true);
} }
private CatcherTrail createTrail(CatcherAnimationState animationState, float x, Vector2 scale) private CatcherTrail createTrail(CatcherAnimationState animationState, float x, Vector2 scale)
{ {
CatcherTrail sprite = trailPool.Get(); CatcherTrail trail = trailPool.Get();
sprite.AnimationState = animationState; trail.AnimationState = animationState;
sprite.Scale = scale; trail.Scale = scale;
sprite.Position = new Vector2(x, 0); trail.Position = new Vector2(x, 0);
return sprite; return trail;
} }
private double getLastDashTrailTime() private double getLastDashTrailTime()