public void RemovePrefab() { SS_FloorInstanceObject[] newPrefabs = new SS_FloorInstanceObject[thePrefabs.Length - 1]; for (int i = 0; i < thePrefabs.Length - 1; i++) { newPrefabs[i] = thePrefabs[i]; } thePrefabs = newPrefabs; }
public void AddPrefab() { SS_FloorInstanceObject[] newPrefabs = new SS_FloorInstanceObject[thePrefabs.Length + 1]; for (int i = 0; i < thePrefabs.Length; i++) { newPrefabs[i] = thePrefabs[i]; } newPrefabs[newPrefabs.Length - 1] = new SS_FloorInstanceObject(); newPrefabs[newPrefabs.Length - 1].thePrefab = SS_Common.SS_DefaultFloorPrefab(); thePrefabs = newPrefabs; }