Ejemplo n.º 1
0
 public void WeCanReverseTweening()
 {
     tweener.Reset(Color.Black, Color.White, TimeSpan.FromSeconds(1));
     tweener.Play();
     tweener.Update(new GameTime(TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(1)));
     tweener.Reverse();
     tweener.Update(new GameTime(TimeSpan.FromSeconds(2), TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(2), TimeSpan.FromSeconds(1)));
     Assert.AreEqual(Color.Black, tweener.Position);
 }
Ejemplo n.º 2
0
 public void BackAndForth()
 {
     if (Stop())
     {
         tweener.Ended -= BackAndForth;
     }
     else
     {
         tweener.Reverse();
     }
 }
Ejemplo n.º 3
0
Archivo: Loop.cs Proyecto: liquidboy/X
 public static void BackAndForth(ITweener tweener)
 {
     tweener.Ended += delegate { tweener.Reverse(); };
 }
Ejemplo n.º 4
0
 public static void BackAndForth(ITweener tweener)
 {
     tweener.Ended += delegate { tweener.Reverse(); };
 }