Beispiel #1
0
        /// <summary>
        /// Remove UI script from registered players.
        /// </summary>
        /// <param name="player"></param>
        public void DeregisterPlayerUI(VPlayerUI player)
        {
            if (!m_registeredPlayerUIs.Contains(player))
            {
                return;
            }

            m_registeredPlayerUIs.Remove(player);
        }
Beispiel #2
0
        /// <summary>
        /// Add UI script to registered players.
        /// </summary>
        /// <param name="player"></param>
        public void RegisterPlayerUI(VPlayerUI player)
        {
            if (m_registeredPlayerUIs.Contains(player))
            {
                return;
            }

            m_registeredPlayerUIs.Add(player);

            UpdatePlayerUI();
        }