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); }
private void AlphaFadeList(float duration, float start, float end) { if (end.Equals(start)) { return; } FloatTween info = new FloatTween { duration = duration, startValue = start, targetValue = end }; info.AddOnChangedCallback(new UnityAction <float>(this.SetAlpha)); info.ignoreTimeScale = true; this.m_AlphaTweenRunner.StartTween(info); }