Exemplo n.º 1
0
 public void Begin(TweenHandler handler = null)
 {
     Assert.IsTrue(!isRunning);
     if (handler == null)
     {
         handler = TweenHandler.Instance;
     }
     handler.BeginTween(this);
 }
Exemplo n.º 2
0
 public virtual bool Begin(TweenHandler handler = null)
 {
     if (_tween != null && !IsRunning) {
         _tween.Begin(handler);
         return true;
     } else {
         return false;
     }
 }
Exemplo n.º 3
0
        public override bool Begin(TweenHandler handler = null)
        {
            if (!currentAsFrom && fromTrans != null) {
                (tween as TweenMove).From = isLocal ? fromTrans.localPosition : fromTrans.position;
            }
            if (!currentAsTo && toTrans != null) {
                (tween as TweenMove).To = isLocal ? toTrans.localPosition : toTrans.position;
            }

            return base.Begin(handler);
        }
Exemplo n.º 4
0
 public virtual bool Begin(TweenHandler handler = null)
 {
     if (_tween != null && !IsRunning)
     {
         _tween.Begin(handler);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 5
0
        public override bool Begin(TweenHandler handler = null)
        {
            if (!currentAsFrom && fromTrans != null)
            {
                (tween as TweenMove).From = isLocal ? fromTrans.localPosition : fromTrans.position;
            }
            if (!currentAsTo && toTrans != null)
            {
                (tween as TweenMove).To = isLocal ? toTrans.localPosition : toTrans.position;
            }

            return(base.Begin(handler));
        }
Exemplo n.º 6
0
 public void Begin(TweenHandler handler = null)
 {
     Assert.IsTrue(!isRunning);
     if (handler == null) {
         handler = TweenHandler.Instance;
     }
     handler.BeginTween(this);
 }