public UIPositionAnimation(RectTransform transform, UIPositionAnimation animation) : this(transform, animation.originPosition, animation.targetPosition, animation.duration) { originPosition = animation.originPosition; targetPosition = animation.targetPosition; updateBehaviour = animation.updateBehaviour; effectBehaviour = animation.effectBehaviour; }
public UIGroupAnimation(RectTransform[] rects, UIPositionAnimation transformAnimation) { animations = new UIAnimation[rects.Length]; for (int i = 0; i < animations.Length; i++) { animations[i] = new UIPositionAnimation(rects[i], transformAnimation); } duration = animations[0].Duration; finished = new bool[animations.Length]; }