PropertyChaining.OnKill<T>

Extension Method in PropertyChaining

Declaration

public static T OnKill<T>(this T tween, TweenCallback callback)
    where T : Tween

Description

Sets the callback to invoke when the tween is killed.

Type Parameters

TThe type of the tween.

Parameters

tweenThe tween to assign the callback to.
callbackThe callback to invoke.

Returns

TThe tween itself to allow for chaining.