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]; }
public UIScaleAnimation(RectTransform transform, UIScaleAnimation animation) : this(transform, animation.originScale, animation.targetScale, animation.duration) { }