原创 Unity3D 基礎函數 使用說明

GameObject.Getcomponent<"組件名稱">(); 返回 組件名稱類型的返回值,可以認爲是該組件對象的索引。例子:private Transform m_Transform;//定義一個私有的Transform 組件類型