Table of Contents

Method GetInterfaceComponent

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

GetInterfaceComponent<TInterface>(Component)

Gets an attached component that implements the interface of the type parameter.

public static TInterface GetInterfaceComponent<TInterface>(this Component thisComponent) where TInterface : class

Parameters

thisComponent Component

The this component.

Returns

TInterface

TInterface.

Type Parameters

TInterface

The type of the t interface.