Esempio n. 1
0
 public void Configure(NonRenewablePowerPlant powerPlant)
 {
     trackedPlant            = powerPlant;
     ConsumptionSlider.value = powerPlant.ConsumptionRate * SLIDER_STEPS;
     UpdateConsumptionText();
 }
Esempio n. 2
0
 private void OnDestroy()
 {
     trackedPlant = null;
 }