complete() 공개 메소드

completes the tween. sets the object to it's final position as if the tween completed normally. takes into effect if the tween was playing forward or reversed.
public complete ( ) : void
리턴 void
예제 #1
0
파일: Scroll.cs 프로젝트: SavaMinic/ld36
    void OnMouseEnter()
    {
        if (!StarManager.Instance.IsPlaying)
        {
            return;
        }

        if (moveAnimation != null)
        {
            moveAnimation.complete();
            moveAnimation.destroy();
        }
        moveAnimation = Go.to(transform, .4f, new GoTweenConfig().position(endPosition).setEaseType(GoEaseType.BackInOut));
    }
예제 #2
0
 static public int complete(IntPtr l)
 {
     try {
         GoTween self = (GoTween)checkSelf(l);
         self.complete();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #3
0
파일: Frog.cs 프로젝트: SavaMinic/8plus1
    public void Initialize(int index)
    {
        GoingRight   = index < 4;
        CurrentIndex = -1;
        SetIndex(index);

        // don't need to change z
        transform.position = (Vector2)pads.Pads[index].transform.position;
        transform.rotation = Quaternion.Euler(0f, 0f, GoingRight ? 270f : 90f);

        // stop tween if it's running
        if (jumpTween != null && jumpTween.state == GoTweenState.Running)
        {
            jumpTween.complete();
        }
    }
예제 #4
0
 public void Open()
 {
     if (toggleAnimation != null)
     {
         toggleAnimation.complete();
         toggleAnimation.destroy();
     }
     if (myRenderer.enabled)
     {
         AnimateClose(AnimateOpening);
     }
     else
     {
         AnimateOpening();
     }
 }
 public void SnapItemToTransform(Transform parentTo, System.Action <ItemPickup> endAnimationEvent)
 {
     AnimatePositioningItem(parentTo, endAnimationEvent);
     itemAnimation.complete();
 }