Example #1
0
 protected virtual void ActivateItemAnimator()
 {
     if (itemAnimator != null)
     {
         itemAnimator.SetActive(true);
     }
 }
Example #2
0
    public override void SetActive(bool newActive)
    {
        TwoStateAnimator layerAnimator = null;

        if (layerAnimators != null)
        {
            for (int i = 0; i < layerAnimators.Length; i++)
            {
                layerAnimator = layerAnimators[i];
                if (layerAnimator != null)
                {
                    layerAnimator.SetActive(newActive);
                }
            }
        }
        base.SetActive(newActive);
    }