Beispiel #1
0
        // -------------------------------------------------- //
        //                   PUBLIC METHODS                   //
        // -------------------------------------------------- //

        /// <summary>
        /// Register a PortalAgent for calculating visibility.
        /// </summary>
        /// <param name="agent">PortalAgent to add.</param>
        public void RegisterAgent(PortalAgent agent)
        {
            if (!m_ActiveAgents.Contains(agent))
            {
                m_ActiveAgents.Add(agent);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Unregister a PortalAgent from calculating visibility.
 /// </summary>
 /// <param name="agent">PortalAgent to remove.</param>
 public void UnregisterAgent(PortalAgent agent)
 {
     if (m_ActiveAgents.Contains(agent))
     {
         m_ActiveAgents.Remove(agent);
     }
 }