Esempio n. 1
0
 /// <summary>
 /// Restarts the tween
 /// </summary>
 /// <param name="fromHere">If TRUE, re-evaluates the tween's start and end values from its current position.
 /// Set it to TRUE when spawning the same DOTweenAnimation in different positions (like when using a pooling system)</param>
 public override void DORestart(bool fromHere = false)
 {
     _playCount = -1;
     if (tween == null)
     {
         //if (Debugger.logPriority > 1) Debugger.LogNullTween(tween); return;
     }
     DOTween.Restart(this.gameObject);
 }
Esempio n. 2
0
 /// <summary>
 /// Restarts the tween
 /// </summary>
 /// <param name="fromHere">If TRUE, re-evaluates the tween's start and end values from its current position.
 /// Set it to TRUE when spawning the same DOTweenAnimation in different positions (like when using a pooling system)</param>
 public override void DORestart(bool fromHere = false)
 {
     _playCount = -1;
     if (tween == null)
     {
         return;
     }
     if (fromHere && isRelative)
     {
         ReEvaluateRelativeTween();
     }
     DOTween.Restart(this.gameObject);
 }
Esempio n. 3
0
 /// <summary>
 /// Restarts the tween
 /// </summary>
 /// <param name="fromHere">If TRUE, re-evaluates the tween's start and end values from its current position.
 /// Set it to TRUE when spawning the same DOTweenAnimation in different positions (like when using a pooling system)</param>
 public override void DORestart(bool fromHere = false)
 {
     _playCount = -1;
     if (tween == null)
     {
         Debugger.LogError("Lost Tween");
     }
     if (fromHere && isRelative)
     {
         ReEvaluateRelativeTween();
     }
     DOTween.Restart(this.gameObject);
 }
Esempio n. 4
0
        /// <summary>
        /// Restarts the tween
        /// </summary>
        /// <param name="fromHere">If TRUE, re-evaluates the tween's start and end values from its current position.
        /// Set it to TRUE when spawning the same DOTweenAnimation in different positions (like when using a pooling system)</param>
        public override void DORestart(bool fromHere = false)
        {
            _playCount = -1;
            if (tween == null)
            {
//                if (Debugger.logPriority > 1)
//					Debugger.LogNullTween(tween);
                DebugUtil.Error("tween is null");
                return;
            }
            if (fromHere && isRelative)
            {
                ReEvaluateRelativeTween();
            }
            DOTween.Restart(this.gameObject);
        }
Esempio n. 5
0
 /// <summary>
 /// Restarts all tweens whose target-id is the same as the one set by this animation
 /// </summary>
 /// <param name="fromHere">If TRUE, re-evaluates the tween's start and end values from its current position.
 /// Set it to TRUE when spawning the same DOTweenAnimation in different positions (like when using a pooling system)</param>
 public override void DORestart(bool fromHere)
 {
     _playCount = -1;
     if (tween == null)
     {
         if (Debugger.logPriority > 1)
         {
             Debugger.LogNullTween(tween);
         }
         return;
     }
     if (fromHere && isRelative)
     {
         ReEvaluateRelativeTween();
     }
     DOTween.Restart(GetTweenTarget());
 }
Esempio n. 6
0
 /// <summary>
 /// Restarts the tween
 /// </summary>
 /// <param name="fromHere">If TRUE, re-evaluates the tween's start and end values from its current position.
 /// Set it to TRUE when spawning the same DOTweenAnimation in different positions (like when using a pooling system)</param>
 public override void DORestart(bool fromHere = false)
 {
     _playCount = -1;
     if (tween == null)
     {
         if (DG.Tweening.Core.Debugger.logPriority > 1)
         {
             DG.Tweening.Core.Debugger.LogNullTween(tween);
         }
         return;
     }
     if (fromHere && isRelative)
     {
         ReEvaluateRelativeTween();
     }
     DOTween.Restart(this.gameObject);
 }
Esempio n. 7
0
 public void DORestart(string id, bool fromHere = false)
 {
     _playCount = -1;
     if (tween == null)
     {
         if (Debugger.logPriority > 1)
         {
             Debugger.LogNullTween(tween);
         }
         return;
     }
     if (fromHere && isRelative)
     {
         ReEvaluateRelativeTween();
     }
     DOTween.Restart(this.gameObject, id);
 }
 // Token: 0x0600015E RID: 350 RVA: 0x00008254 File Offset: 0x00006654
 public override void DORestart(bool fromHere = false)
 {
     this._playCount = -1;
     if (this.tween == null)
     {
         if (Debugger.logPriority > 1)
         {
             Debugger.LogNullTween(this.tween);
         }
         return;
     }
     if (fromHere && this.isRelative)
     {
         this.ReEvaluateRelativeTween();
     }
     DOTween.Restart(base.gameObject, true, -1f);
 }
Esempio n. 9
0
 /// <summary>
 ///     Restarts all tweens that have this target as a reference
 ///     (meaning tweens that were started from this target, or that had this target added as an Id)
 ///     and returns the total number of tweens restarted.
 /// </summary>
 public static int DORestart(this AudioMixer target)
 {
     return(DOTween.Restart(target));
 }
Esempio n. 10
0
 /// <summary>
 /// Restarts all tweens with the given ID and whose target-id is the same as the one set by this animation
 /// </summary>
 public void DORestartById(string id)
 {
     _playCount = -1;
     DOTween.Restart(GetTweenTarget(), id);
 }
Esempio n. 11
0
 public void DORestartAllById(string id)
 {
     DOTween.Restart(id);
 }
Esempio n. 12
0
 public static int DORestart(this Component target, bool includeDelay = true)
 {
     return(DOTween.Restart(target, includeDelay));
 }
Esempio n. 13
0
 public static int DORestart(this Material target, bool includeDelay = true)
 {
     return(DOTween.Restart(target, includeDelay));
 }
Esempio n. 14
0
 public void DORestartById(string id)
 {
     this._playCount = -1;
     DOTween.Restart(base.gameObject, id, true);
 }
Esempio n. 15
0
 public void DORestartAllById(string id)
 {
     this._playCount = -1;
     DOTween.Restart(id, true);
 }
Esempio n. 16
0
 public void DORestartById(string id)
 {
     _playCount = -1;
     DOTween.Restart(this.gameObject, id);
 }
Esempio n. 17
0
 public void DORestartAllById(string id)
 {
     _playCount = -1;
     DOTween.Restart(id);
 }
Esempio n. 18
0
 public void DORestartById(string id)
 {
     DOTween.Restart(this.gameObject, id);
 }