/// <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); } }
/** 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); }
/** 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); } }
/// <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(); } }