public void AddCut(GNavmeshCut obj) { var graphSpaceBounds = obj.GetBounds(handler.graph.transform); var touchingTiles = handler.graph.GetTouchingTilesInGraphSpace(graphSpaceBounds); handler.gcuts.Add(obj, touchingTiles); obj.ForceUpdate(); }
public void RemoveCut(GNavmeshCut obj) { var root = handler.gcuts.GetRoot(obj); if (root != null) { forcedReloadRects.Add(root.previousBounds); handler.gcuts.Remove(obj); } lastUpdateTime = float.NegativeInfinity; }