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

        slot.SetIconInSlot(icon);
    }
Пример #2
0
 public void RemoveIconFromSlot(GeneticIcon icon)
 {
     if (maleSlot.iconInSlot == icon)
     {
         maleSlot.RemoveIconFromSlot();
     }
     else if (femaleSlot.iconInSlot == icon)
     {
         femaleSlot.RemoveIconFromSlot();
     }
 }
Пример #3
0
    public void RemoveGeneticIcon(int id)
    {
        GeneticIcon   icon   = sampleToIconMap[id];
        GeneticSample sample = icon.sample;

        sampleToIconMap.Remove(id);
        Destroy(icon.gameObject);
        displayedSamples.Remove(sample);

        RearrangeIcons();
    }
Пример #4
0
 public void RemoveIconFromSlot()
 {
     iconInSlot = null;
 }
Пример #5
0
 public void SetIconInSlot(GeneticIcon icon)
 {
     iconInSlot = icon;
 }