public void Merge(Slider slider)
 {
     Group1.GetComponent <PlayerStats> ().numComponentesGrupo = (int)slider.value;
     Group2.GetComponent <PlayerStats>().numComponentesGrupo  = (int)slider.maxValue - (int)slider.value;
     if (Group1.GetComponent <PlayerStats>().numComponentesGrupo == 0)
     {
         Destroy(Group1);
     }
     if (Group2.GetComponent <PlayerStats>().numComponentesGrupo == 0)
     {
         Destroy(Group2);
     }
     MergePanel.SetActive(false);
 }