Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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;
        }