Exemple #1
0
        public void AddObserver(INavmeshObserver observer)
        {
            using (new WriteLock(InputLock))
            {
                if (m_Observers.Contains(observer))
                {
                    return;
                }

                m_Observers.Add(observer);
            }
        }
Exemple #2
0
 public void RemoveObserver(INavmeshObserver observer)
 {
     using (new WriteLock(InputLock))
         m_Observers.Remove(observer);
 }