1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00

Removed Steve Streetling's DOBlendablePunchRotation from hyper-compatible mode since it doesn't work (anyway hyper-compatible mode is not necessary anymore)

This commit is contained in:
Demigiant 2017-12-15 13:28:04 +01:00
parent c21989e786
commit dbeab7c974
43 changed files with 10 additions and 10 deletions

View File

@ -6,18 +6,16 @@ using UnityEngine.SceneManagement;
public class TempPro : MonoBehaviour public class TempPro : MonoBehaviour
{ {
public Transform target; public GameObject target;
void Start() IEnumerator Start()
{ {
// target.DOScale(2, 0.1f).SetLoops(2, LoopType.Yoyo).SetAutoKill(false).Pause(); GameObject newPath = Instantiate(target);
} newPath.transform.SetParent(this.transform.parent, false);
yield return new WaitForSeconds(1);
void Update() newPath = Instantiate(target);
{ newPath.transform.SetParent(this.transform.parent, false);
if (Input.GetKeyDown(KeyCode.Space)) { yield return new WaitForSeconds(2);
Debug.Log(DOTween.TweensByTarget(target).Count);
target.DOPlay();
} else if (Input.GetKeyDown(KeyCode.E)) target.GetComponent<DOTweenAnimation>().DOPlay();
} }
} }

View File

@ -1283,6 +1283,7 @@ namespace DG.Tweening
return t; return t;
} }
#if !COMPATIBLE
// Added by Steve Streeting > https://github.com/sinbad // Added by Steve Streeting > https://github.com/sinbad
/// <summary>Punches a Transform's localRotation BY the given value and then back to the starting one /// <summary>Punches a Transform's localRotation BY the given value and then back to the starting one
/// as if it was connected to the starting rotation via an elastic. Does it in a way that allows other /// as if it was connected to the starting rotation via an elastic. Does it in a way that allows other
@ -1314,6 +1315,7 @@ namespace DG.Tweening
.Blendable().SetTarget(target); .Blendable().SetTarget(target);
return t; return t;
} }
#endif
/// <summary>Tweens a Transform's localScale BY the given value (as if you chained a <code>SetRelative</code>), /// <summary>Tweens a Transform's localScale BY the given value (as if you chained a <code>SetRelative</code>),
/// in a way that allows other DOBlendableScale tweens to work together on the same target, /// in a way that allows other DOBlendableScale tweens to work together on the same target,

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.