Upravit

Sdílet prostřednictvím


GKRule.FromPredicate Method

Definition

Factory method to create a GKRule with the specified predicate and action.

[Foundation.Export("ruleWithBlockPredicate:action:")]
public static GameplayKit.GKRule FromPredicate (Func<GameplayKit.GKRuleSystem,bool> predicate, Action<GameplayKit.GKRuleSystem> action);
static member FromPredicate : Func<GameplayKit.GKRuleSystem, bool> * Action<GameplayKit.GKRuleSystem> -> GameplayKit.GKRule

Parameters

Returns

Attributes

Applies to