Exemplo n.º 1
0
 private void AlphaFadeList(float duration, float start, float end)
 {
     if (!end.Equals(start))
     {
         FloatTween floatTween = default(FloatTween);
         floatTween.duration    = duration;
         floatTween.startValue  = start;
         floatTween.targetValue = end;
         FloatTween info = floatTween;
         info.AddOnChangedCallback(SetAlpha);
         info.ignoreTimeScale = true;
         m_AlphaTweenRunner.StartTween(info);
     }
 }
        private void AlphaFadeList(float duration, float start, float end)
        {
            if (end.Equals(start))
            {
                return;
            }

            FloatTween tween = new FloatTween {
                duration = duration, startValue = start, targetValue = end
            };

            tween.AddOnChangedCallback(SetAlpha);
            tween.ignoreTimeScale = true;
            m_AlphaTweenRunner.StartTween(tween);
        }