GameObject-GetComponent - Unity スクリプトリファレンス

Gets a reference to a component of type T on the specified GameObject.