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