Düzenle

Aracılığıyla paylaş


GKBehavior.SetWeight(Single, GKGoal) Method

Definition

Sets the weight for goal, potentially adding goal to the GKBehavior.

[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

Parameters

weight
Single
goal
GKGoal
Attributes

Remarks

If goal is not currently in the GKBehavior, this method will add it.

Applies to