/////////////////////////////////////////////////////////////////////////// // // WeatherManager Functions // /// <summary> /// Sets the weather data to the UI, showing the temperature and current weather conditions as text. /// Also calls SetConditions with the conditions from the weatherViewData. /// </summary> /// <param name="weatherViewData">Weather view data.</param> public void SetData(WeatherViewData weatherViewData) { //TODO: Fill. infoText.text = Math.Round(weatherViewData.temperature) + "° " + weatherViewData.conditions.ToString(); SetConditions(weatherViewData.conditions); }
/////////////////////////////////////////////////////////////////////////// // // WeatherManager Functions // /// <summary> /// Sets the weather data to the UI, showing the temperature and current weather conditions as text. /// Also calls SetConditions with the conditions from the weatherViewData. /// </summary> /// <param name="weatherViewData">Weather view data.</param> public void SetData(WeatherViewData weatherViewData) { //TODO: Fill. }