Пример #1
0
 public void AddSeedSpotsToActiveSeedSpotsList(SeedSpot activatedSeedSpot)
 {
     if (!(_activeSeedSpots.Contains(activatedSeedSpot.gameObject)))
     {
         _activeSeedSpots.Add(activatedSeedSpot.gameObject);
         activatedSeedSpot.GetComponentInChildren <ParticleSystem>().Stop();
         _nonActiveSeedSpots.Remove(activatedSeedSpot.gameObject);
     }
 }
Пример #2
0
 public void RemoveSeedSpotsFromActiveSeedSpotList(SeedSpot deactivatedSeedSpot)
 {
     if (!(_nonActiveSeedSpots.Contains(deactivatedSeedSpot.gameObject)))
     {
         deactivatedSeedSpot.SetSpotFree();
         _nonActiveSeedSpots.Add(deactivatedSeedSpot.gameObject);
         deactivatedSeedSpot.GetComponentInChildren <ParticleSystem>().Play();
         _activeSeedSpots.Remove(deactivatedSeedSpot.gameObject);
     }
 }