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
ComponentThe this component.
Returns
- TInterface
TInterface.
Type Parameters
TInterface
The type of the t interface.