public void AddQuantite(Loot_Enum type, int quantite) { playerLoots[type] += quantite; /*Debug.Log ("ajout de " + quantite + " de " + type); * Debug.Log ("quantité un fois ajouté " + getQuantite(type)); * Debug.Log ("quantité de patate " + getQuantite(Loot_Enum.Pattate));*/ }
public bool soustractionQuantite(Loot_Enum type, int aEnlever) { if (playerLoots[type] - aEnlever < 0) { return(false); } else { playerLoots[type] -= aEnlever; return(true); } }
public Texture2D getTexture2D(Loot_Enum l) { return(lootTx[l]); }
public int getQuantite(Loot_Enum type) { return(playerLoots[type]); }
//Gette/Setter public void setTypeLoot(Loot_Enum l) { a_typeLoot = l; }