AddBehavior(TStunt, IStuntBehavior) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Adds a behavior to a stunt.

public static TStunt AddBehavior<TStunt>(this TStunt stunt, IStuntBehavior behavior)
    where TStunt : IStunt

Type parameters

TStunt

Parameters

stunt
{TStunt}

The stunt to add the behavior to.

behavior
IStuntBehavior

A custom behavior to apply to the stunt.

Returns

{TStunt}