Example #1
0
 protected virtual void ClearItemAnimator()
 {
     if (itemAnimator != null)
     {
         itemAnimator.Clear();
         itemAnimator = null;
     }
 }
Example #2
0
    protected override void ClearChildAnimators()
    {
        TwoStateAnimator layerAnimator = null;

        if (layerAnimators != null)
        {
            for (int i = 0; i < layerAnimators.Length; i++)
            {
                layerAnimator = layerAnimators[i];
                if (layerAnimator != null)
                {
                    layerAnimator.Clear();
                }
            }
        }
        layerTransforms = null;
        layerSpeeds     = null;
        layerAnimators  = null;
    }