public void AddCard(Card c)
    {
        GameObject temp = Instantiate(cardPrefab);

        temp.name = c.nameCard;
        temp.transform.SetParent(cardHolder.transform);
        var temp2 = temp.GetComponent <CardsExposer>().GetCard();

        temp2.GetComponent <CardUI>().GetCardSprite(c.cardSprite);
        temp.transform.localScale = Vector3.one;
        if (!cont)
        {
            cont = player.GetComponent <ControlInGame>();
        }
        cont.HighlightUI(cont.cardIndexSelected);
    }
 private void Start()
 {
     cont = player.GetComponent <ControlInGame>();
     //playerName.SetText(player.name);
     SetSlider();
 }