Esempio n. 1
0
    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));*/
    }
Esempio n. 2
0
 public bool soustractionQuantite(Loot_Enum type, int aEnlever)
 {
     if (playerLoots[type] - aEnlever < 0)
     {
         return(false);
     }
     else
     {
         playerLoots[type] -= aEnlever;
         return(true);
     }
 }
Esempio n. 3
0
 public Texture2D getTexture2D(Loot_Enum l)
 {
     return(lootTx[l]);
 }
Esempio n. 4
0
 public int getQuantite(Loot_Enum type)
 {
     return(playerLoots[type]);
 }
Esempio n. 5
0
 //Gette/Setter
 public void setTypeLoot(Loot_Enum l)
 {
     a_typeLoot = l;
 }