mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 09:16:02 +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:
parent
c21989e786
commit
dbeab7c974
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -6,18 +6,16 @@ using UnityEngine.SceneManagement;
|
||||
|
||||
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()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Space)) {
|
||||
Debug.Log(DOTween.TweensByTarget(target).Count);
|
||||
target.DOPlay();
|
||||
} else if (Input.GetKeyDown(KeyCode.E)) target.GetComponent<DOTweenAnimation>().DOPlay();
|
||||
newPath = Instantiate(target);
|
||||
newPath.transform.SetParent(this.transform.parent, false);
|
||||
yield return new WaitForSeconds(2);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@ -1283,6 +1283,7 @@ namespace DG.Tweening
|
||||
return t;
|
||||
}
|
||||
|
||||
#if !COMPATIBLE
|
||||
// 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
|
||||
/// 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);
|
||||
return t;
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <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,
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user