Пример #1
0
 public void MoveDemo()
 {
     Debug.Log("origin.anchoredPosition: " + (UIAnimator.GetCenter(origin)));
     Debug.Log("target.anchoredPosition: " + (UIAnimator.GetCenter(target)));
     //		UIAnimator.Move(moveDemo, UIAnimator.GetAnchorCenter(origin), UIAnimator.GetAnchorCenter(target), 1f);
     UIAnimator.Move(moveDemo, UIAnimator.GetCenter(origin), UIAnimator.GetCenter(target), 1f).Play();
 }
Пример #2
0
 public void MoveOffsetDemo()
 {
     UIAnimator.MoveOffset(moveDemo, UIAnimator.GetCenter(target) - UIAnimator.GetCenter(origin), 1f).Play();
 }
Пример #3
0
 public void MoveVerticalToDemo()
 {
     UIAnimator.MoveVerticalTo(moveDemo, UIAnimator.GetCenter(target).y, 1f).Play();
 }
Пример #4
0
 public void MoveHorizontalToDemo()
 {
     UIAnimator.MoveHorizontalTo(moveDemo, UIAnimator.GetCenter(target).x, 1f).Play();
 }
Пример #5
0
 public void MoveToDemo()
 {
     UIAnimator.MoveTo(moveDemo, UIAnimator.GetCenter(target), 1f).Play();
 }
Пример #6
0
 public void MoveDemo()
 {
     //		UIAnimator.Move(moveDemo, UIAnimator.GetAnchorCenter(origin), UIAnimator.GetAnchorCenter(target), 1f);
     UIAnimator.Move(moveDemo, UIAnimator.GetCenter(origin), UIAnimator.GetCenter(target), 1f).Play();
 }