public void RemovePrefabItem(int index) { if (PointsOfInterestSublayerList != null) { PointsOfInterestSublayerList.RemoveAt(index); } }
public void AddLocationPrefabItem(PrefabItemOptions prefabItem) { //ensure that there is a list of prefabitems if (PointsOfInterestSublayerList == null) { PointsOfInterestSublayerList = new List <PrefabItemOptions>(); } //add the prefab item if it doesn't already exist if (!PointsOfInterestSublayerList.Contains(prefabItem)) { PointsOfInterestSublayerList.Add(prefabItem); } }