diff --git a/README.md b/README.md index b513ec4..90f6854 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ # dotween -A Unity C# animation engine. HOTween v2 - +A Unity C# animation engine. HOTween v2 Developed by Daniele Giardini - http://www.demigiant.com -Check the docs on DOTween's website - http://dotween.demigiant.com \ No newline at end of file +Check the docs on DOTween's website - http://dotween.demigiant.com + +![DOTween](screenshots/splash_dotween.png "DOTween") +![DOTween](screenshots/splash_lambda.png "DOTween") +![DOTween](screenshots/splash_shortcuts.png "DOTween") \ No newline at end of file diff --git a/UnityTests.Unity5/Assets/_DOTween Examples/CustomPlugin Example/CustomRangePlugin.cs b/UnityTests.Unity5/Assets/_DOTween Examples/CustomPlugin Example/CustomRangePlugin.cs index b03be7e..4bf6454 100644 --- a/UnityTests.Unity5/Assets/_DOTween Examples/CustomPlugin Example/CustomRangePlugin.cs +++ b/UnityTests.Unity5/Assets/_DOTween Examples/CustomPlugin Example/CustomRangePlugin.cs @@ -53,7 +53,6 @@ public class CustomRangePlugin : ABSTweenPlugin getter, DOSetter setter, float elapsed, CustomRange startValue, CustomRange changeValue, float duration, bool usingInversePosition, UpdateNotice updateNotice) { - CustomRange res = getter(); float easeVal = EaseManager.Evaluate(t, elapsed, duration, t.easeOvershootOrAmplitude, t.easePeriod); // Here I use startValue directly because CustomRange a struct, so it won't reference the original. diff --git a/UnityTests.Unity5/Assets/_Tests/TempTests.cs b/UnityTests.Unity5/Assets/_Tests/TempTests.cs index b885006..b79bc6e 100644 --- a/UnityTests.Unity5/Assets/_Tests/TempTests.cs +++ b/UnityTests.Unity5/Assets/_Tests/TempTests.cs @@ -13,56 +13,8 @@ public class TempTests : BrainBase void Start() { - DOTween.Init(); - PlayTween(); - } - - Sequence mySequence; - - Tween anchorMinTween = null; - Tween anchorMaxTween = null; - Tween anchorPositionTween = null; - Tween scaleTween = null; - - void PlayTween() - { - mySequence = DOTween.Sequence(); - - anchorMaxTween = DOTween.To(() => rectTrans.anchorMax, v => rectTrans.anchorMax = v, new Vector2(0.5f, 0.5f), 1f) - // .Pause() - .SetDelay(2f) - .OnPlay(()=> Debug.Log(Time.realtimeSinceStartup + " Start MAX")) - ; - - anchorMinTween = DOTween.To(() => rectTrans.anchorMin, v => rectTrans.anchorMin = v, new Vector2(0.5f, 0.5f), 1f) - // .Pause() - .SetDelay(2f) - .OnPlay(() => Debug.Log(Time.realtimeSinceStartup + " Start MIN")) - ; - - anchorPositionTween = DOTween.To(() => rectTrans.anchoredPosition, v => rectTrans.anchoredPosition = v, Vector2.zero, 1f) - //.Pause() - .SetDelay(2f) - .OnPlay(() => Debug.Log(Time.realtimeSinceStartup + " Start POS")) - ; - - scaleTween = DOTween.To(() => rectTrans.localScale, v => rectTrans.localScale = v, Vector3.zero, 1f) - //.Pause() - .SetDelay(2f) - .OnPlay(() => Debug.Log(Time.realtimeSinceStartup + " Start SCALE")) - ; - - mySequence - .AppendInterval(5f) - .Append(anchorMaxTween) - .Join(anchorMinTween) - .Join(anchorPositionTween) - .AppendInterval(2f) - .Append(scaleTween) - //.SetDelay(2f) - //.Play() - .Pause() - .OnPlay(()=> Debug.Log(Time.realtimeSinceStartup + " >>> PLAY")) - ; + DOTween.Sequence().SetDelay(2) + // .AppendInterval(2) + .Append(rectTrans.DOAnchorPosX(100, 1).SetRelative()); } } \ No newline at end of file diff --git a/screenshots/splash_dotween.png b/screenshots/splash_dotween.png new file mode 100644 index 0000000..ae43db2 Binary files /dev/null and b/screenshots/splash_dotween.png differ diff --git a/screenshots/splash_lambda.png b/screenshots/splash_lambda.png new file mode 100644 index 0000000..ea89348 Binary files /dev/null and b/screenshots/splash_lambda.png differ diff --git a/screenshots/splash_shortcuts.png b/screenshots/splash_shortcuts.png new file mode 100644 index 0000000..1001145 Binary files /dev/null and b/screenshots/splash_shortcuts.png differ