共用方式為


GKGoal.GetGoalToCohere(GKAgent[], Single, Single) 方法

定義

用於產生 GKGoal 適合鎖定行為的 Factory 方法, (也會看到 GetGoalToSeparate(GKAgent[], Single, Single) 其他代理程式並 GetGoalToAlign(GKAgent[], Single, Single)) 。

[Foundation.Export("goalToCohereWithAgents:maxDistance:maxAngle:")]
public static GameplayKit.GKGoal GetGoalToCohere (GameplayKit.GKAgent[] agents, float maxDistance, float maxAngle);
static member GetGoalToCohere : GameplayKit.GKAgent[] * single * single -> GameplayKit.GKGoal

參數

agents
GKAgent[]
maxDistance
Single
maxAngle
Single

傳回

屬性

適用於