public override IEnumerable <Progress> ScanInternal() { TriangleMeshNode.SetNavmeshHolder(AstarPath.active.data.GetGraphIndex(this), this); if (!Application.isPlaying) { RelevantGraphSurface.FindAllGraphSurfaces(); } RelevantGraphSurface.UpdateAllPositions(); foreach (Progress progress in this.ScanAllTiles()) { yield return(progress); } yield break; }
protected override IEnumerable <Progress> ScanInternal() { TriangleMeshNode.SetNavmeshHolder(AstarPath.active.data.GetGraphIndex(this), this); if (!Application.isPlaying) { RelevantGraphSurface.FindAllGraphSurfaces(); } RelevantGraphSurface.UpdateAllPositions(); foreach (var progress in ScanAllTiles()) { yield return(progress); } #if DEBUG_REPLAY DebugReplay.WriteToFile(); #endif }