Beispiel #1
0
 public void RemovePrefabItem(int index)
 {
     if (PointsOfInterestSublayerList != null)
     {
         PointsOfInterestSublayerList.RemoveAt(index);
     }
 }
Beispiel #2
0
        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);
            }
        }