Exemplo n.º 1
0
 public override void Update(DeltaTime dt)
 {
     if (changeAnimation?.Update(dt) ?? false)
     {
         changeAnimation = null;
     }
     base.Update(dt);
 }
Exemplo n.º 2
0
 public CoinLabel(Screen owner, Container layout, float size, int depth = 1, TextAlignment alignment = TextAlignment.Left) : base(owner, layout, size, Manager.State.Gold.ToString( ), Core.Color.Gold, depth, alignment)
 {
     Manager.State.GoldChanged += (newGold) => {
         changeAnimation = new ChangeNumericTextAnimation(this, (int)newGold, 0.3f);
     };
 }