void Awake() { pollutionGenerator = GetComponent <PollutionGenerator>(); wasteUser = GetComponent <WasteUser>(); materialUser = GetComponent <MaterialUser>(); moneyUser = GetComponent <MoneyUser>(); unit = GetComponent <Unit>(); workerSpender = GetComponent <WorkerSpender>(); workerSpender.OnEffectivenessChanged.AddListener(CalculateValues); }
void Awake() { wasteUser = GetComponent <WasteUser>(); unit = GetComponent <Unit>(); unit.OnTickEvent.AddListener(OnTick); }