Carte DrawCard() { int cardIndex = Random.Range(0, gameDeck.GetComponent <GestionCartes>().allCards.Count); Carte cardDraw = gameDeck.GetComponent <GestionCartes>().allCards[cardIndex]; gameDeck.GetComponent <GestionCartes>().allCards.RemoveAt(cardIndex); Debug.Log("ma carte : " + cardDraw.cardName); hand.Add(cardDraw); gameDeck.GetComponent <GestionCartes>().allCardsInPlayerHand.Add(cardDraw); cardDraw.Create(); SendPlayerhasDraw(cardDraw); return(cardDraw); }