Modifier

Partager via


SKPhysicsContactDelegate_Extensions Class

Definition

Extension methods to the ISKPhysicsContactDelegate interface to support all the methods from the SKPhysicsContactDelegate protocol.

public static class SKPhysicsContactDelegate_Extensions
type SKPhysicsContactDelegate_Extensions = class
Inheritance
SKPhysicsContactDelegate_Extensions

Remarks

The extension methods for ISKPhysicsContactDelegate allow developers to treat instances of the interface as having all the optional methods of the original SKPhysicsContactDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

DidBeginContact(ISKPhysicsContactDelegate, SKPhysicsContact)

Method that is called when contact is started.

DidEndContact(ISKPhysicsContactDelegate, SKPhysicsContact)

Method that is called after contact ends.

Applies to