Exemple #1
0
 /**
  * <summary>Unregisters a NavMeshBase, so that it is no longer updated</summary>
  * <param name = "_object">The NavMeshBase to unregister</param>
  */
 public void Unregister(NavMeshBase _object)
 {
     if (navMeshBases.Contains(_object))
     {
         navMeshBases.Remove(_object);
     }
 }
 /**
  * <summary>Registers a NavMeshBase, so that it can be updated</summary>
  * <param name = "_object">The NavMeshBase to register</param>
  */
 public void Register(NavMeshBase _object)
 {
     if (!navMeshBases.Contains(_object))
     {
         navMeshBases.Add(_object);
         _object.IgnoreNavMeshCollisions();
     }
 }
 /**
  * <summary>Unregisters a NavMeshBase, so that it is no longer updated</summary>
  * <param name = "_object">The NavMeshBase to unregister</param>
  */
 public void Unregister(NavMeshBase _object)
 {
     navMeshBases.Remove(_object);
 }