Exemple #1
0
    public Contenu GetContenuTotal()
    {
        Contenu contenuTotal = new Contenu();

        foreach (GameObject module in dictionary.Keys)
        {
            foreach (CurrencySO so in dictionary[module])
            {
                contenuTotal.AddCurr(so);
            }
        }

        return(contenuTotal);
    }
Exemple #2
0
    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);
    }