void Awake() { materialUser = GetComponent <MaterialUser>(); unit = GetComponent <Unit>(); moneyUser = GetComponent <MoneyUser>(); workerSpender = GetComponent <WorkerSpender>(); workerSpender.OnEffectivenessChanged.AddListener(RecalculateEffectiveness); }
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() { moneyUser = GetComponent <MoneyUser>(); unit = GetComponent <Unit>(); unit.OnTickEvent.AddListener(OnTick); }