public IProgressIndicator GetChild(int index)
        {
            for (int i = 0; i < m_children.Count; ++i)
            {
                ProgressIndicator progress = m_children[i];
                if (progress != null)
                {
                    PlayerUIZone zone = progress.GetComponentInParent <PlayerUIZone>();
                    if (zone.LocalPlayerIndex == index)
                    {
                        return(progress);
                    }
                }
            }

            return(null);
        }
Пример #2
0
        public INotification GetChild(int index)
        {
            for (int i = 0; i < m_children.Count; ++i)
            {
                Notification notification = m_children[i];
                if (notification != null)
                {
                    PlayerUIZone zone = notification.GetComponentInParent <PlayerUIZone>();
                    if (zone.LocalPlayerIndex == index)
                    {
                        return(notification);
                    }
                }
            }

            return(null);
        }