Beispiel #1
0
 public TweenOpacityUUI(TweenUUI_Base target, float time, float delay)
 {
     this.target      = target;
     this.ease        = Tween.Ease.linear;
     this.time        = time;
     this.runningTime = -delay;
 }
Beispiel #2
0
 protected override void Apply()
 {
     unchecked
     {
         TweenUUI_Base s = (TweenUUI_Base)target;
         s.SetValue(start + (end - start) * easevalue);
     }
 }
Beispiel #3
0
        protected override void Init()
        {
            TweenUUI_Base s = (TweenUUI_Base)target;

            if (!startUsed)
            {
                start = s.GetValue();
            }
            if (!endUsed)
            {
                end = s.GetValue();
            }

            Tween.Stop <TweenOpacityUUI>(this, target);
        }