} //END PlayAlpha //------------------------------------// private void BeginPlayingAlpha( float alpha, float tweenSpeed, float delay, EaseCurve.EaseType easeType ) //------------------------------------// { Color startColor = GetStartColor( rendererType ); Color endColor = GetColorFromRendererWithNewAlpha( alpha ); if( rendererType == bxrTweenColor.RendererType.Renderer ) { tween = Renderer.Color( endColor, tweenSpeed, easeType, startColor, delay, false, onCompleteOrLoop ); } else if( rendererType == bxrTweenColor.RendererType.Image ) { tween = image.Color( endColor, tweenSpeed, easeType, startColor, delay, false, onCompleteOrLoop ); } else if( rendererType == bxrTweenColor.RendererType.RawImage ) { tween = rawImage.Color( endColor, tweenSpeed, easeType, startColor, delay, false, onCompleteOrLoop ); } else if( rendererType == bxrTweenColor.RendererType.SpriteRenderer ){ tween = spriteRenderer.Color( endColor, tweenSpeed, easeType, startColor, delay, false, onCompleteOrLoop ); } else if( rendererType == bxrTweenColor.RendererType.Text ) { tween = text.Color( endColor, tweenSpeed, easeType, startColor, delay, false, onCompleteOrLoop ); } else if( rendererType == bxrTweenColor.RendererType.Material ) { tween = material.Color( endColor, tweenSpeed, easeType, startColor, delay, false, onCompleteOrLoop ); } else if( rendererType == bxrTweenColor.RendererType.CanvasGroup ) { tween = canvasGroup.Color( endColor, tweenSpeed, easeType, startColor, delay, false, onCompleteOrLoop ); } } //END BeginPlayingAlpha