GKBehavior.FromGoals 方法

定义

重载

FromGoals(NSDictionary<GKGoal,NSNumber>)

为一 GKBehavior 组加权目标创建并返回 。

FromGoals(GKGoal[])

工厂方法,用于创建 GKBehavior 具有指定 goals的 ,每个的权重为 1.0。

FromGoals(GKGoal[], NSNumber[])

用于创建具有 GKBehavior 指定 goals 及其相应 weights的 的工厂方法。

FromGoals(NSDictionary<GKGoal,NSNumber>)

为一 GKBehavior 组加权目标创建并返回 。

[Foundation.Export("behaviorWithWeightedGoals:")]
public static GameplayKit.GKBehavior FromGoals (Foundation.NSDictionary<GameplayKit.GKGoal,Foundation.NSNumber> weightedGoals);
static member FromGoals : Foundation.NSDictionary<GameplayKit.GKGoal, Foundation.NSNumber> -> GameplayKit.GKBehavior

参数

weightedGoals
NSDictionary<GKGoal,NSNumber>

返回

属性

适用于

FromGoals(GKGoal[])

工厂方法,用于创建 GKBehavior 具有指定 goals的 ,每个的权重为 1.0。

[Foundation.Export("behaviorWithGoals:")]
public static GameplayKit.GKBehavior FromGoals (GameplayKit.GKGoal[] goals);
static member FromGoals : GameplayKit.GKGoal[] -> GameplayKit.GKBehavior

参数

goals
GKGoal[]

返回

属性

适用于

FromGoals(GKGoal[], NSNumber[])

用于创建具有 GKBehavior 指定 goals 及其相应 weights的 的工厂方法。

[Foundation.Export("behaviorWithGoals:andWeights:")]
public static GameplayKit.GKBehavior FromGoals (GameplayKit.GKGoal[] goals, Foundation.NSNumber[] weights);
static member FromGoals : GameplayKit.GKGoal[] * Foundation.NSNumber[] -> GameplayKit.GKBehavior

参数

goals
GKGoal[]
weights
NSNumber[]

返回

属性

适用于