Esempio n. 1
0
    public void StartLayerAlphaFading(int layerIndex, float newFadeSpeed, bool immediately)
    {
        TwoStateAnimator layerAnimator = null;

        if (layerAnimators != null)
        {
            if ((layerIndex > -1) && (layerIndex < layerAnimators.Length))
            {
                layerAnimator = layerAnimators[layerIndex];
                if (layerAnimator != null)
                {
                    layerAnimator.StartAlphaFading(newFadeSpeed, immediately, false, false);
                }
            }
        }
    }
Esempio n. 2
0
    protected override void StartAlphaFadingChildAnimators(float newFadeSpeed, bool immediately, bool behindParent)
    {
        TwoStateAnimator layerAnimator = null;

        if (behindParent)
        {
            if (layerAnimators != null)
            {
                for (int i = 0; i < layerAnimators.Length; i++)
                {
                    layerAnimator = layerAnimators[i];
                    if (layerAnimator != null)
                    {
                        layerAnimator.StartAlphaFading(newFadeSpeed, immediately, true, false);
                        break;
                    }
                }
            }
        }
    }