// -------------------------------------------------- // // 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); } }
/// <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); } }