Skip to content

Commit

Permalink
Added Material/SpriteRenderer/Image DOGradientColor + Fixed DOJump no…
Browse files Browse the repository at this point in the history
…t working correctly with Rigidbody2D
  • Loading branch information
Demigiant committed Sep 27, 2015
1 parent bc6cace commit e2b5ae4
Show file tree
Hide file tree
Showing 58 changed files with 267 additions and 15 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll
Binary file not shown.
Binary file modified UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb
Binary file not shown.
Binary file modified UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll
Binary file not shown.
Binary file modified UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb
Binary file not shown.
23 changes: 22 additions & 1 deletion UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll
Binary file not shown.
Binary file modified UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb
Binary file not shown.
6 changes: 6 additions & 0 deletions UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll
Binary file not shown.
Binary file modified UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll
Binary file not shown.
Binary file modified UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb
Binary file not shown.
Binary file modified UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll
Binary file not shown.
Binary file modified UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb
Binary file not shown.
23 changes: 22 additions & 1 deletion UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll
Binary file not shown.
Binary file modified UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb
Binary file not shown.
6 changes: 6 additions & 0 deletions UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll
Binary file not shown.
Binary file modified UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using UnityEngine;
using System.Collections;
using DG.Tweening;

public class DOJumpRigidbody2D : MonoBehaviour
{
public Rigidbody r3D;
public Rigidbody2D r2D;

IEnumerator Start()
{
yield return new WaitForSeconds(1);

r3D.DOJump(new Vector3(5f, 0, 0), 3f, 2, 2f, false);
r2D.DOJump(new Vector2(5f, 0), 3f, 2, 2f, false);
// r2D.transform.DOJump(new Vector2(5f, 0), 3f, 2, 2f, false);
}
}
12 changes: 12 additions & 0 deletions UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
8 changes: 8 additions & 0 deletions UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.unity.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _DOTween.Assembly/DOTween/DOTween.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace DG.Tweening
public class DOTween
{
/// <summary>DOTween's version</summary>
public static readonly string Version = "1.0.830";
public static readonly string Version = "1.0.850";

///////////////////////////////////////////////
// Options ////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions _DOTween.Assembly/DOTween/ShortcutExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public static Sequence DOJump(this Rigidbody target, Vector3 endValue, float jum
.SetOptions(AxisConstraint.X, snapping).SetEase(Ease.Linear)
.OnUpdate(() => {
if (!offsetYSet) {
offsetYSet = false;
offsetYSet = true;
offsetY = s.isRelative ? endValue.y : endValue.y - startPosY;
}
Vector3 pos = target.position;
Expand Down Expand Up @@ -810,7 +810,7 @@ public static Sequence DOJump(this Transform target, Vector3 endValue, float jum
.SetOptions(AxisConstraint.X, snapping).SetEase(Ease.Linear)
.OnUpdate(() => {
if (!offsetYSet) {
offsetYSet = false;
offsetYSet = true;
offsetY = s.isRelative ? endValue.y : endValue.y - startPosY;
}
Vector3 pos = target.position;
Expand Down
Loading

0 comments on commit e2b5ae4

Please sign in to comment.