Beispiel #1
0
        /** Partially scan the graph.
         *
         * Consider using AstarPath.Scan () instead since this function might screw things up if there is more than one graph.
         * This function does not perform all necessary postprocessing for the graph to work with pathfinding (e.g flood fill).
         * See the source of the AstarPath.Scan function to see how it can be used.
         * In almost all cases you should use AstarPath.Scan instead.
         */
        public void ScanGraph()
        {
            if (AstarPath.OnPreScan != null)
            {
                AstarPath.OnPreScan(AstarPath.active);
            }

            if (AstarPath.OnGraphPreScan != null)
            {
                AstarPath.OnGraphPreScan(this);
            }

            var scan = ScanInternal().GetEnumerator();

            while (scan.MoveNext())
            {
            }

            if (AstarPath.OnGraphPostScan != null)
            {
                AstarPath.OnGraphPostScan(this);
            }

            if (AstarPath.OnPostScan != null)
            {
                AstarPath.OnPostScan(AstarPath.active);
            }
        }
Beispiel #2
0
 // Token: 0x06000425 RID: 1061 RVA: 0x000215AC File Offset: 0x0001F9AC
 public void ScanGraph()
 {
     if (AstarPath.OnPreScan != null)
     {
         AstarPath.OnPreScan(AstarPath.active);
     }
     if (AstarPath.OnGraphPreScan != null)
     {
         AstarPath.OnGraphPreScan(this);
     }
     this.ScanInternal();
     if (AstarPath.OnGraphPostScan != null)
     {
         AstarPath.OnGraphPostScan(this);
     }
     if (AstarPath.OnPostScan != null)
     {
         AstarPath.OnPostScan(AstarPath.active);
     }
 }
Beispiel #3
0
        public void ScanGraph()
        {
            if (AstarPath.OnPreScan != null)
            {
                AstarPath.OnPreScan(AstarPath.active);
            }
            if (AstarPath.OnGraphPreScan != null)
            {
                AstarPath.OnGraphPreScan(this);
            }
            IEnumerator <Progress> enumerator = this.ScanInternal().GetEnumerator();

            while (enumerator.MoveNext())
            {
            }
            if (AstarPath.OnGraphPostScan != null)
            {
                AstarPath.OnGraphPostScan(this);
            }
            if (AstarPath.OnPostScan != null)
            {
                AstarPath.OnPostScan(AstarPath.active);
            }
        }