Esempio n. 1
0
 private void PlayAnim(String p_animName)
 {
     Collider[] componentsInChildren = m_CloseAnim.GetComponentsInChildren <Collider>();
     foreach (Collider collider in componentsInChildren)
     {
         collider.enabled = (p_animName == m_CloseAnimName);
     }
     if (m_CloseAnim.namePrefix != p_animName)
     {
         m_CloseAnim.namePrefix = p_animName;
         m_CloseAnim.Reset();
     }
 }