共用方式為


GKGraphNode.GetCost(GKGraphNode) 方法

定義

從這個 GKGraphNode 周遊到直接連線節點 node 的實際成本。

[Foundation.Export("costToNode:")]
public virtual float GetCost (GameplayKit.GKGraphNode node);
abstract member GetCost : GameplayKit.GKGraphNode -> single
override this.GetCost : GameplayKit.GKGraphNode -> single

參數

node
GKGraphNode

直接連接的 GKGraphNode

傳回

屬性

適用於