示例#1
0
 public override void Update(long thisTime, Ball b)
 {
     scale = Math.Min((float)scaleAnim.CalculateValue(thisTime), 1f);
     if (scale < 0f)
     {
         isEnabled = false;
         layingBall.StartFalling(thisTime);
     }
 }
示例#2
0
 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;
     }
 }
示例#3
0
 public override void Update(long thisTime, Ball b)
 {
     offset = (float)offsAnim.CalculateValue(thisTime);
 }