Ejemplo n.º 1
0
 public WorldTreeInterface(WorldTree source,Vector3 pos)
 {
     sourceTree = source;
     size = Mathf.Pow(2, source.GetMaxLevelDepth());
     position = pos;
     BuildInterfaceFromSource();
     DebugOutput.Shout("maxLevelDepth = " + source.GetMaxLevelDepth().ToString() + " size = " + size.ToString());
 }
Ejemplo n.º 2
0
 public SubPathfinder(WorldTree target)
 {
     rwLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);
     pathQueue = new List<AIPath>();
     outsideQueue = new List<AIPath>();
     syncedTree = new WorldTree(target.GetMaxLevelDepth());
     targetTree = target;
 }