public void SetVisible(bool bVisible) { for (int i = 0; i < this.m_EffectInstances.Count; i++) { EffectInstance effectInstance = this.m_EffectInstances[i]; if (null != effectInstance) { effectInstance.SetVisible(bVisible); } } }