Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
2,355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. this.lottie.AnimatorUpdate += this.OnAnimatorUpdate;
  2.  
  3. private void OnAnimatorUpdate(object sender, ValueAnimator.ValueAnimatorUpdateEventArgs e)
  4.         {
  5.             if (e.Animation.IsRunning)
  6.             {
  7.                 this.lottie.Speed = this.lottie.Progress > 0.5 ? 3.5F : 1F;
  8.             }
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement