public void AddIconToSlot(GeneticIcon icon, BreedingSlot slot) { // remove existing one first if (slot.iconInSlot != null) { slot.iconInSlot.ResetPosition(); } slot.SetIconInSlot(icon); }
public void RemoveIconFromSlot(GeneticIcon icon) { if (maleSlot.iconInSlot == icon) { maleSlot.RemoveIconFromSlot(); } else if (femaleSlot.iconInSlot == icon) { femaleSlot.RemoveIconFromSlot(); } }
public void RemoveGeneticIcon(int id) { GeneticIcon icon = sampleToIconMap[id]; GeneticSample sample = icon.sample; sampleToIconMap.Remove(id); Destroy(icon.gameObject); displayedSamples.Remove(sample); RearrangeIcons(); }
public void RemoveIconFromSlot() { iconInSlot = null; }
public void SetIconInSlot(GeneticIcon icon) { iconInSlot = icon; }