Share via


GKGoal.GetGoalToSeekAgent(GKAgent) 方法

定义

工厂方法,用于创建一个 GKGoal ,该模板将移动到指定 agent的当前位置。 (另 GetGoalToInterceptAgent(GKAgent, Double) 请参阅)

[Foundation.Export("goalToSeekAgent:")]
public static GameplayKit.GKGoal GetGoalToSeekAgent (GameplayKit.GKAgent agent);
static member GetGoalToSeekAgent : GameplayKit.GKAgent -> GameplayKit.GKGoal

参数

agent
GKAgent

返回

属性

适用于