public void InitAnimations()
 {
     RotateAnimator rotateAnimator = new RotateAnimator(4, RotateAnimator.eDirection.Right, TimeSpan.Zero);
     FadeOutAnimator fadeOutAnimator = new FadeOutAnimator(TimeSpan.FromSeconds(2));
     BlinkAnimator blinkAnimator = new BlinkAnimator("BlinkAnimator", TimeSpan.FromSeconds(0.2), TimeSpan.FromSeconds(2));
     fadeOutAnimator.Finished += fadeOutAnimator_Finished;
     this.Animations.Add(fadeOutAnimator);
     this.Animations.Add(rotateAnimator);
     this.Animations.Add(blinkAnimator);
     this.Animations.Enabled = true;
     this.Animations["FadeOutAnimator"].Pause();
     this.Animations["RotateAnimator"].Pause();
     this.Animations["BlinkAnimator"].Pause();
 }
Exemple #2
0
 public void InitAnimations()
 {
     ShrinkAnimator shrinkAnimator = new ShrinkAnimator(TimeSpan.FromSeconds(1.5));
     RotateAnimator rotateAnimator = new RotateAnimator(5, RotateAnimator.eDirection.Right, TimeSpan.FromSeconds(1.5));
     CellAnimator cellAnimator = new CellAnimator(TimeSpan.FromMilliseconds(500), r_TextureStartIndex, r_TextureEndIndex, TimeSpan.Zero);
     this.Animations.Add(shrinkAnimator);
     this.Animations.Add(rotateAnimator);
     this.Animations.Add(cellAnimator);
     cellAnimator.Resume();
     shrinkAnimator.Pause();
     rotateAnimator.Pause();
     this.Animations.Resume();
     shrinkAnimator.Finished += shrinkAnimator_Finished;
 }