public override void Update(long thisTime, Ball b) { scale = Math.Min((float)scaleAnim.CalculateValue(thisTime), 1f); if (scale < 0f) { isEnabled = false; layingBall.StartFalling(thisTime); } }
public override void Update(long thisTime, Ball b) { alpha = Math.Max(Math.Min((int)Math.Round(alphaAnimator.CalculateValue(thisTime), 0), 180), 0); if (alpha == 0) { isEnabled = false; layingBall.StartFalling(thisTime); } else { isEnabled = true; } }
public override void Update(long thisTime, Ball b) { offset = (float)offsAnim.CalculateValue(thisTime); }