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