コード例 #1
0
ファイル: NavMesh.cs プロジェクト: vigomes03/mbhswipetapsmash
        /// <summary>
        /// Take two GraphNode objects and remove any link they have as Neighbour.
        /// </summary>
        /// <param name="a"></param>
        /// <param name="b"></param>
        public void UnlinkGraphNodes(GraphNode a, GraphNode b)
        {
            a.RemoveNeighbour(b);
            b.RemoveNeighbour(a);

            //if (a != null)
            //{
                //DebugWalkGraphForErrors(a as NavMeshTileGraphNode);
            //}

            //DebugCheckNode(a);
            //DebugCheckNode(b);
        }