コード例 #1
0
 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;
 }
コード例 #2
0
 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];
 }