Exemple #1
0
 public void removeIce()
 {
     if (Ice.Count != 0)
     {
         Ice.RemoveAt(Ice.Count - 1);
         Money += ICE_PRICE;
     }
 }
Exemple #2
0
 public void addIce()
 {
     if (Money >= ICE_PRICE)
     {
         Ice.Add(new Ice("Ice", ICE_PRICE));
         Money -= ICE_PRICE;
     }
 }