public void RemoveCrystals() { foreach (PortalCrystal target in PortalCrystals.ToArray()) { target.Delete(); } PortalCrystals.Clear(); PortalCrystals.TrimExcess(); }
public void SpawnCrystals() { for (int i = 0; i < 4; i++) { var portalcrystal = new PortalCrystal(); PortalCrystals.Add(portalcrystal); portalcrystal.MoveToWorld(ValidSpawnPoints.GetRandom(), DungeonMap); } }