diff --git a/Runtime/DelayedInvokeTween.cs b/Runtime/DelayedInvokeTween.cs deleted file mode 100644 index d7a5560..0000000 --- a/Runtime/DelayedInvokeTween.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using ElRaccoone.Tweens.Core; -using UnityEngine; - -namespace ElRaccoone.Tweens { - public static class DelayedInvokeTween { - [ObsoleteAttribute ("This method is deprecated, Unity Tweens will only focus on actual Tweens in the future. Please implement another way of invoke in method delayed.")] - public static Tween TweenDelayedInvoke (this Component self, float duration, Action onComplete) => - Tween.Add (self).SetOnComplete (onComplete).Finalize (false, duration); - - [ObsoleteAttribute ("This method is deprecated, Unity Tweens will only focus on actual Tweens in the future. Please implement another way of invoke in method delayed.")] - public static Tween TweenDelayedInvoke (this GameObject self, float duration, Action onComplete) => - Tween.Add (self).SetOnComplete (onComplete).Finalize (false, duration); - - /// - /// The driver is responsible for updating the tween's state. - /// - private class Driver : Tween { - public override bool OnInitialize () { - return true; - } - - /// - /// Overriden method which is called when the tween starts and should - /// return the tween's initial value. - /// - public override bool OnGetFrom () { - return true; - } - - /// - /// Overriden method which is called every tween update and should be used - /// to update the tween's value. - /// - /// The current eased time of the tween's step. - public override void OnUpdate (float easedTime) { } - } - } -} \ No newline at end of file diff --git a/Runtime/DelayedInvokeTween.cs.meta b/Runtime/DelayedInvokeTween.cs.meta deleted file mode 100644 index cd2514e..0000000 --- a/Runtime/DelayedInvokeTween.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a945ec9308e42499ebf3394050443189 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Tests/TweenTests.cs b/Tests/TweenTests.cs index 7b0aad5..52cdca9 100644 --- a/Tests/TweenTests.cs +++ b/Tests/TweenTests.cs @@ -195,17 +195,6 @@ private void OnGUI () { this.target.TweenValueVector2 (Vector2.one, 2, (v) => Debug.Log (v)).SetEaseSineInOut ().SetFrom (-Vector2.one); if (GUILayout.Button ("Tween Value Vector3")) this.target.TweenValueVector3 (Vector3.one, 2, (v) => Debug.Log (v)).SetEaseSineInOut ().SetFrom (-Vector3.one); - if (GUILayout.Button ("Tween Delayed Invoke")) - this.target.TweenDelayedInvoke (1, () => Debug.Log ("Hello World!")); - if (GUILayout.Button ("Pausing")) { - var _tween = this.target.TweenPositionY (3, 5).SetFrom (-3); - this.target.TweenDelayedInvoke (2, () => _tween.SetPaused (true)); - this.target.TweenDelayedInvoke (3, () => _tween.SetPaused (false)); - } - if (GUILayout.Button ("Change ease type halfway")) { - var _tween = this.target.TweenPositionY (0, 4).SetFrom (-1).SetEaseBackInOut (); - this.target.TweenDelayedInvoke (2, () => _tween.SetEaseBounceInOut ()); - } // Flicker Testing GUILayout.Label ("[CANCELING TESTING]");