public void MapSetup() { mapConfig = FindObjectOfType <MapConfig>(); currentHealthText = mapConfig.GetHealthTextField(); currentEnergyText = mapConfig.GetEnergyTextField(); SetHealthText(); SetEnergyText(); }