// Token: 0x060026AC RID: 9900 RVA: 0x001A8FCC File Offset: 0x001A71CC private void HandleOnEnableCallback(NavmeshClipper obj) { Rect bounds = obj.GetBounds(this.handler.graph.transform); IntRect touchingTilesInGraphSpace = this.handler.graph.GetTouchingTilesInGraphSpace(bounds); this.handler.cuts.Add(obj, touchingTilesInGraphSpace); obj.ForceUpdate(); }
/** Called when a NavmeshCut or NavmeshAdd is enabled */ void HandleOnEnableCallback(NavmeshClipper obj) { var graphSpaceBounds = obj.GetBounds(handler.graph.transform); var touchingTiles = handler.graph.GetTouchingTilesInGraphSpace(graphSpaceBounds); handler.cuts.Add(obj, touchingTiles); obj.ForceUpdate(); }
/// <summary>Called when a NavmeshCut or NavmeshAdd is enabled</summary> public void AddClipper(NavmeshClipper obj) { // Without the forceCreate parameter set to true then no handler will be created // because there are no clippers in the scene yet. However one is being added right now. Refresh(true); if (handler == null) { return; } var graphSpaceBounds = obj.GetBounds(handler.graph.transform); var touchingTiles = handler.graph.GetTouchingTilesInGraphSpace(graphSpaceBounds); handler.cuts.Add(obj, touchingTiles); }