Exemplo n.º 1
0
 public void ConsumeAndProduceResources()
 {
     foreach (ResourceTypes resourceType in System.Enum.GetValues(typeof(ResourceTypes)))
     {
         float amount = GetAmountForThisInterval(resourceType);
         if (amount != 0)
         {
             ResourceController.ChangeResource(resourceType, amount);
         }
     }
 }