共用方式為


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 ,這個方法將會新增它。

適用於