AddComponent

AddComponent(Type)

public TileComponent AddComponent(Type type) ;

Description

Adds the TileComponent.

Parameters

Parameter Name Description
type Type of the class you want to add.

Returns

TileComponent that have been added.

AddComponent<T>()

public T AddComponent<T>() ;

Description

Adds the TileComponent.

Type Parameters

Type Parameter Name Description Type Constraints
T Class of TileComponent to add.

Returns

TileComponent that have been added.