GKBehavior.SetWeight(Single, GKGoal) 方法

定义

weight设置 的 goal,可能会将 添加到 goalGKBehavior

[Foundation.Export("setWeight:forGoal:")]
public virtual void SetWeight (float weight, GameplayKit.GKGoal goal);
abstract member SetWeight : single * GameplayKit.GKGoal -> unit
override this.SetWeight : single * GameplayKit.GKGoal -> unit

参数

weight
Single
goal
GKGoal
属性

注解

如果 goal 当前不在 中 GKBehavior,此方法将添加它。

适用于