Author Topic: UIButtonAnimation StartReversed Animation  (Read 2359 times)

alexokita

  • Guest
UIButtonAnimation StartReversed Animation
« on: July 23, 2013, 02:43:47 PM »
Thought i'd contribute.

In UIButtonPlayAnimation.cs i added

public bool StartReversed;

in void Play(bool forward) {
...
         if( StartReversed ) {
            dir = !forward ? playDirection : ((Direction)pd);
         } else {
            dir = forward ? playDirection : ((Direction)pd);
         }
...
}

quick hack to start the animation backward on the first click rather than starting forward on the first click. At least that's what I'm trying to do. Not too sure if this works, anyone have a better solution?