Exemple #1
0
 public UIGroupAnimation(RectTransform[] rects, UIScaleAnimation transformAnimation)
 {
     animations = new UIAnimation[rects.Length];
     for (int i = 0; i < animations.Length; i++)
     {
         animations[i] = new UIScaleAnimation(rects[i], transformAnimation);
     }
     duration = animations[0].Duration;
     finished = new bool[animations.Length];
 }
Exemple #2
0
 public UIScaleAnimation(RectTransform transform, UIScaleAnimation animation) :
     this(transform, animation.originScale, animation.targetScale, animation.duration)
 {
 }