// Use this for initialization protected override void start() { //create the input selects m_InputSelects = new InputSelectV2[MountPoints.Length]; for (int i = 0; i < m_InputSelects.Length; i++) { m_InputSelects[i] = new InputSelectV2(MountPoints[i].transform, (GameObject)GameObject.Instantiate(SelectionPrefabs[i], MountPoints[i].transform.position, MountPoints[i].transform.rotation), InputSelections[i]); } }