GKObstacleGraph.ConnectNodeUsingObstacles 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ConnectNodeUsingObstacles(GKGraphNode2D) | |
ConnectNodeUsingObstacles(GKGraphNode2D, GKPolygonObstacle[]) |
將節點新增至 GKGraph ,將它連接到其最接近的芳鄰,避免 Obstacles 除了 中的 |
ConnectNodeUsingObstacles(GKGraphNode2D)
[Foundation.Export("connectNodeUsingObstacles:")]
public virtual void ConnectNodeUsingObstacles (GameplayKit.GKGraphNode2D node);
abstract member ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D -> unit
override this.ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D -> unit
參數
- node
- GKGraphNode2D
- 屬性
適用於
ConnectNodeUsingObstacles(GKGraphNode2D, GKPolygonObstacle[])
[Foundation.Export("connectNodeUsingObstacles:ignoringObstacles:")]
public virtual void ConnectNodeUsingObstacles (GameplayKit.GKGraphNode2D node, GameplayKit.GKPolygonObstacle[] obstaclesToIgnore);
abstract member ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D * GameplayKit.GKPolygonObstacle[] -> unit
override this.ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D * GameplayKit.GKPolygonObstacle[] -> unit
參數
- node
- GKGraphNode2D
- obstaclesToIgnore
- GKPolygonObstacle[]
- 屬性