Exemplo n.º 1
0
 protected override void ApplyResourcesConsumption(BaseResourcesBalance resources, float deltaTime)
 {
     _pauseProduction = !resources.TryUseResource(BaseResourceType.Electricity, _electricityConsumption * deltaTime);
     _pauseProduction = !resources.TryUseResource(BaseResourceType.Carbon, _carbonConsumption * deltaTime);
     resources.AddResource(BaseResourceType.Oxygen, _oxygenProduction * deltaTime);
     //throw new System.NotImplementedException();
 }
Exemplo n.º 2
0
 protected override void ApplyResourcesConsumption(BaseResourcesBalance resources, float deltaTime)
 {
     resources.AddResource(BaseResourceType.Electricity, _electricityProduction * deltaTime);
     //throw new System.NotImplementedException();
 }