在編輯模式下插入指令碼

[SerializeField]
GameObject[] gameObjects;
優點 缺點
很好的表現;很好的績效 物件集合是靜態的
行動式程式碼 只能從同一場景中引用 GameObjects