Exemplo n.º 1
0
 IEnumerator <object> GetUserAnimationCoroutine(asd.DrawnObject2D object2D, UserAnimationElement userAnimation)
 {
     for (int i = 1; i <= userAnimation.frame; i++)
     {
         userAnimation.easingFunc(userAnimation.easing, i, userAnimation.frame, object2D);
         yield return(null);
     }
 }
Exemplo n.º 2
0
        public void AnimateUserFunc(int frame, Action <Easing, int, int, asd.Object2D> easingFunc, Easing easing = Easing.Linear)
        {
            var element = new UserAnimationElement
            {
                frame         = frame > 0 ? frame : 1,
                easing        = easing,
                isRequireFrom = false,
                easingFunc    = easingFunc
            };

            animationElements.Add(element);
        }