Example #1
0
    public void AddIconToSlot(GeneticIcon icon, BreedingSlot slot)
    {
        // remove existing one first
        if (slot.iconInSlot != null)
        {
            slot.iconInSlot.ResetPosition();
        }

        slot.SetIconInSlot(icon);
    }
Example #2
0
 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();
     }
 }