Search Unity

What's the HOTween equivalent to the To statement in DOTween ?

Discussion in 'Scripting' started by D3ntrax, Feb 11, 2016.

  1. D3ntrax

    D3ntrax

    Joined:
    Mar 21, 2014
    Posts:
    35
    Hello!

    I have a sample script coded with HOTween plug-in.

    In HOTween, I can do the following:

    1) HOTween.To((targetPiece.Bottom.Tile as DestructionTile).tileModelTransform, fallStiffness, new TweenParms().Prop("localPosition", Vector3.down * fallPower).Ease(EaseType.EaseOutSine));

    2) HOTween.To((targetPiece.Tile as DestructionTile).tileModelTransform, fallStiffness, new TweenParms().Prop("localPosition", (targetPiece.Tile as DestructionTile).tileModelLocalPos).Ease(EaseType.EaseOutSine));

    3) HOTween.Init(false, false, false);

    What is the equivalent in DOTween? There is no To extends keyword apparently and this does not work:

    DOTween.To, DOTween.DOMove (There is no Prop function)

    Thanks so much... :)
     
  2. D3ntrax

    D3ntrax

    Joined:
    Mar 21, 2014
    Posts:
    35