protected virtual void TransformPopOut(ulong newValue) { PopOutCount.Text = FormatCount(newValue); PopOutCount.ScaleTo(PopOutScale); PopOutCount.FadeTo(PopOutInitialAlpha); PopOutCount.MoveTo(Vector2.Zero); PopOutCount.ScaleTo(1, PopOutDuration, PopOutEasing); PopOutCount.FadeOut(PopOutDuration, PopOutEasing); PopOutCount.MoveTo(DisplayedCountSpriteText.Position, PopOutDuration, PopOutEasing); }
protected override void OnCountRolling(ulong currentValue, ulong newValue) { if (!IsRolling && newValue < currentValue) { PopOutCount.Text = FormatCount(currentValue); PopOutCount.FadeTo(PopOutInitialAlpha); PopOutCount.ScaleTo(1.0f); PopOutCount.FadeOut(PopOutDuration, PopOutEasing); PopOutCount.ScaleTo(PopOutScale, PopOutDuration, PopOutEasing); } base.OnCountRolling(currentValue, newValue); }