complete() public method

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
return void
Esempio n. 1
0
    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));
    }
Esempio n. 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));
     }
 }
Esempio n. 3
0
    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();
        }
    }
Esempio n. 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();
 }