Esempio n. 1
0
 public void addResource(int i, int add)
 {
     if ((resourceList [i] + add) <= maxResourceList [i])
     {
         resourceList [i] += add;
     }
     else
     {
         setResource(i, maxResourceList [i]);
     }
     MetaScript.updateResourcesUI();
 }
Esempio n. 2
0
 void setResource(int i, int set)
 {
     resourceList [i] = set;
     MetaScript.updateResourcesUI();
 }
Esempio n. 3
0
 public void increaseCapacity(int i, int increase)
 {
     maxResourceList [i] += increase;
     MetaScript.updateResourcesUI();
 }