예제 #1
0
 /// <summary>Called when some tiles in a recast graph have been completely recalculated (e.g from scanning the graph)</summary>
 public void OnRecalculatedTiles(NavmeshTile[] tiles)
 {
     Refresh();
     if (handler != null)
     {
         handler.OnRecalculatedTiles(tiles);
     }
 }
예제 #2
0
        /** Called when some recast graph tiles have been completely recalculated */
        void OnRecalculatedTiles(NavmeshTile[] tiles)
        {
            if (!handler.isValid)
            {
                UseSpecifiedHandler(new TileHandler(handler.graph));
            }

            handler.OnRecalculatedTiles(tiles);
        }
예제 #3
0
        /** Called when some recast graph tiles have been completely recalculated */
        void OnRecalculatedTiles(RecastGraph.NavmeshTile[] tiles)
        {
            if (handler != null)
            {
                if (!handler.isValid)
                {
                    handler = new TileHandler(handler.graph);
                }

                handler.OnRecalculatedTiles(tiles);
            }
        }
예제 #4
0
            /// <summary>Called when some tiles in a recast graph have been completely recalculated (e.g from scanning the graph)</summary>
            public void OnRecalculatedTiles(NavmeshTile[] tiles)
            {
                Refresh();
                if (handler != null)
                {
                    handler.OnRecalculatedTiles(tiles);
                }

                // If the whole graph was updated then mark all navmesh cuts as being up to date.
                // If only a part of the graph was updated then a navmesh cut might be over the non-updated part
                // as well, and in that case we don't want to mark it as fully updated.
                if (graph.GetTiles().Length == tiles.Length)
                {
                    DiscardPending();
                }
            }