Exemplo n.º 1
0
        public void Lift()
        {
            if (this._Tween != null)
            {
                Tweener.RemoveTween(this._Tween);
            }
            TweenParameter p = new TweenParameter
            {
                Opacity    = 0.5,
                time       = 0.5,
                transition = TransitionType.easeOutSine
            };

            this._Tween = Tweener.addTween(this.LayoutRoot, p);
        }
Exemplo n.º 2
0
 public void Example1()
 {
     Value = 0;
     if (handle == null)
     {
         handle = this.Tween(Duration)
                  .BeforeStart(() => { Debug.Log("Started"); })
                  .AnchoredOffset(img.rectTransform, new Vector3(0, 100), V3Flag.Y).Ease(TweenFunctionType.easeInOutBounce)
                  .AnchoredOffset(img.rectTransform, new Vector3(100, 0), V3Flag.X)
                  .ColorFromTo(img, Color.white, Color.red)
                  .To(getter, setter, To2, V3Flag.X)
                  .OnFinal(() => Debug.Log("Finished"));
     }
     handle.Play();
 }