GoTween.complete C# (CSharp) Méthode

complete() public méthode

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
Résultat void
    public override void complete()
    {
        if( iterations < 0 )
            return;

        // set delayComplete so we get one last update in before we die (base will set the elapsed time for us)
        _delayComplete = true;

        base.complete();
    }

Usage Example

Exemple #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));
    }
All Usage Examples Of GoTween::complete