Beispiel #1
0
        public static void UpdateOrAddLocationPrefab(this WorldStructure self, LocationPrefub changedLocationPrefub)
        {
            for (int i = 0; i < self.Locations.Count; i++)
            {
                if (self.Locations[i].Id == changedLocationPrefub.Id)
                {
                    self.Locations[i] = changedLocationPrefub;
                    return;
                }
            }

            self.Locations.Add(changedLocationPrefub);
        }