public void AddIconToSlot(GeneticIcon icon, BreedingSlot slot) { // remove existing one first if (slot.iconInSlot != null) { slot.iconInSlot.ResetPosition(); } slot.SetIconInSlot(icon); }
public void DropOnSlot(BreedingSlot breedingSlot) { if (sample.unit.gender == breedingSlot.genderSlot) { inSlot = true; this.transform.position = breedingSlot.gameObject.transform.position; breedingPopup.AddIconToSlot(this, breedingSlot); } else { ResetPosition(); } }