Share via


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

返回

属性

适用于