Edytuj

Udostępnij za pośrednictwem


SKAction.CustomActionWithDuration(Double, SKActionDurationHandler) Method

Definition

A custom action that repeats for some amount of time.

[Foundation.Export("customActionWithDuration:actionBlock:")]
public static SpriteKit.SKAction CustomActionWithDuration (double seconds, SpriteKit.SKActionDurationHandler actionHandler);
static member CustomActionWithDuration : double * SpriteKit.SKActionDurationHandler -> SpriteKit.SKAction

Parameters

seconds
Double
actionHandler
SKActionDurationHandler

Returns

Attributes

Remarks

The actionHandler is called repeatedly until seconds has passed.

The custom action is not reversible: ReversedAction returns an SKAction whose behavior is the actionHandler.

Applies to