Fix catch hyper dash colour defaults not being set correctly

As the defaults were not set, if a skin happened to specify 0,0,0,0 it
would be ignored due to the early returns in property setters.
This commit is contained in:
Dean Herbert 2020-08-24 22:11:04 +09:00
parent 997ea2f27e
commit db45d9aa8a
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ public class CatcherTrailDisplay : CompositeDrawable
private readonly Container<CatcherTrailSprite> hyperDashTrails;
private readonly Container<CatcherTrailSprite> endGlowSprites;
private Color4 hyperDashTrailsColour;
private Color4 hyperDashTrailsColour = Catcher.DEFAULT_HYPER_DASH_COLOUR;
public Color4 HyperDashTrailsColour
{
@ -39,7 +39,7 @@ public Color4 HyperDashTrailsColour
}
}
private Color4 endGlowSpritesColour;
private Color4 endGlowSpritesColour = Catcher.DEFAULT_HYPER_DASH_COLOUR;
public Color4 EndGlowSpritesColour
{