public Contenu GetContenuTotal() { Contenu contenuTotal = new Contenu(); foreach (GameObject module in dictionary.Keys) { foreach (CurrencySO so in dictionary[module]) { contenuTotal.AddCurr(so); } } return(contenuTotal); }
public Contenu GetContenuVisible() { Contenu contenuVisible = new Contenu(); foreach (GameObject module in dictionary.Keys) { foreach (CurrencySO so in dictionary[module]) { if (module.GetComponent <WalletInfos>().visible) { contenuVisible.AddCurr(so); } } } return(contenuVisible); }