public void AddObserver(INavmeshObserver observer) { using (new WriteLock(InputLock)) { if (m_Observers.Contains(observer)) { return; } m_Observers.Add(observer); } }
public void RemoveObserver(INavmeshObserver observer) { using (new WriteLock(InputLock)) m_Observers.Remove(observer); }