public void AddEnergyFeedback(IExhaustable exhaustable) { if (exhaustable != null) { energyInfo.parent.SetActive(true); exhaustable.AddEnergyFeedback(energyInfo.healthBar, energyInfo.healthText); } }
public CarBase() { engineBehaviour = new SimpleEngine(); exhaustBehaviour = new SimpleExhaust(); wheelsBehaviour = new FourWheels(); }