共用方式為


GKObstacleGraph.ConnectNodeUsingObstacles 方法

定義

多載

ConnectNodeUsingObstacles(GKGraphNode2D)

將節點新增至 GKGraph ,將它連接到其最接近的芳鄰,以避免 Obstacles

ConnectNodeUsingObstacles(GKGraphNode2D, GKPolygonObstacle[])

將節點新增至 GKGraph ,將它連接到其最接近的芳鄰,避免 Obstacles 除了 中的 obstaclesToIgnore 節點之外。

ConnectNodeUsingObstacles(GKGraphNode2D)

將節點新增至 GKGraph ,將它連接到其最接近的芳鄰,以避免 Obstacles

[Foundation.Export("connectNodeUsingObstacles:")]
public virtual void ConnectNodeUsingObstacles (GameplayKit.GKGraphNode2D node);
abstract member ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D -> unit
override this.ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D -> unit

參數

屬性

適用於

ConnectNodeUsingObstacles(GKGraphNode2D, GKPolygonObstacle[])

將節點新增至 GKGraph ,將它連接到其最接近的芳鄰,避免 Obstacles 除了 中的 obstaclesToIgnore 節點之外。

[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

參數

obstaclesToIgnore
GKPolygonObstacle[]
屬性

適用於