public T GetComponent ();

Valor de retorno

T The Component of type T to retrieve.

Descripción

Returns the component of type T if the GameObject of the tile map has one attached, null if it doesn't.