public void AttributeCard01() { if (_cardAlreadyUsed.Count > 0) { _tirage01 = Random.Range(0, _cardAlreadyUsed.Count); _card01._scriptableEffect = _scriptableEffects[_tirage01]; _card01.AttribuerEffect(); _card01._goUp = true; //Si la carte est infinie if (!_cardAlreadyUsed[_tirage01]._isInfinite) { _cardAlreadyUsed[_tirage01]._numberOfUsing--; } //Retirer la carte si elle atteint 0 if (_cardAlreadyUsed[_tirage01]._numberOfUsing <= 0) { _cardAlreadyUsed.Remove(_cardAlreadyUsed[_tirage01]); } StartCoroutine(AttributeCard02()); } }