Fix some incorrect default values.

This commit is contained in:
Dean Herbert 2016-11-02 14:03:03 +09:00
parent a4e2f25065
commit f5f5aa9eac
1 changed files with 2 additions and 3 deletions

View File

@ -30,9 +30,7 @@ public DrawableCircle(Circle h) : base(h)
this.h = h;
Origin = Anchor.Centre;
Alpha = 0;
Position = h.Position;
Scale = new Vector2(0.4f);
Children = new Framework.Graphics.Drawable[]
{
@ -50,7 +48,7 @@ public DrawableCircle(Circle h) : base(h)
flash = new FlashLayer(),
explode = new ExplodeLayer
{
Colour = h.Colour
Colour = h.Colour,
},
approachCircle = new Sprite
{
@ -88,6 +86,7 @@ protected override void UpdateState(ArmedState state)
//sane defaults
ring.Alpha = circle.Alpha = number.Alpha = approachCircle.Alpha = glow.Alpha = 1;
explode.Alpha = 0;
//always-present transforms
Transforms.Add(new TransformAlpha { StartTime = t - 1000, EndTime = t - 800, StartValue = 0, EndValue = 1 });