Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
        }
Ejemplo 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());
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo n.º 8
0
 // 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);
 }
Ejemplo 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));
 }
Ejemplo 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);
 }
Ejemplo n.º 11
0
 public void DORestartAllById(string id)
 {
     DOTween.Restart(id);
 }
Ejemplo n.º 12
0
 public static int DORestart(this Component target, bool includeDelay = true)
 {
     return(DOTween.Restart(target, includeDelay));
 }
Ejemplo n.º 13
0
 public static int DORestart(this Material target, bool includeDelay = true)
 {
     return(DOTween.Restart(target, includeDelay));
 }
Ejemplo n.º 14
0
 public void DORestartById(string id)
 {
     this._playCount = -1;
     DOTween.Restart(base.gameObject, id, true);
 }
Ejemplo n.º 15
0
 public void DORestartAllById(string id)
 {
     this._playCount = -1;
     DOTween.Restart(id, true);
 }
Ejemplo n.º 16
0
 public void DORestartById(string id)
 {
     _playCount = -1;
     DOTween.Restart(this.gameObject, id);
 }
Ejemplo n.º 17
0
 public void DORestartAllById(string id)
 {
     _playCount = -1;
     DOTween.Restart(id);
 }
Ejemplo n.º 18
0
 public void DORestartById(string id)
 {
     DOTween.Restart(this.gameObject, id);
 }