WeatherUi 수정
This commit is contained in:
parent
6fa993ca16
commit
d35afb28b9
@ -1,9 +1,7 @@
|
|||||||
using System;
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using DistantLands.Cozy;
|
using DistantLands.Cozy;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Serialization;
|
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
// ReSharper disable once CheckNamespace
|
// ReSharper disable once CheckNamespace
|
||||||
@ -17,7 +15,6 @@ namespace BlueWaterProject
|
|||||||
[field: SerializeField] public Image WeatherIcon { get; set; }
|
[field: SerializeField] public Image WeatherIcon { get; set; }
|
||||||
|
|
||||||
[SerializeField] private float updateTime = 1f;
|
[SerializeField] private float updateTime = 1f;
|
||||||
[FormerlySerializedAs("cozyController")] [SerializeField] private CozyManager cozyManager;
|
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
@ -30,7 +27,7 @@ namespace BlueWaterProject
|
|||||||
{
|
{
|
||||||
Date.text = CozyWeather.instance.timeModule.currentDay + " Days";
|
Date.text = CozyWeather.instance.timeModule.currentDay + " Days";
|
||||||
Time.text = CozyWeather.instance.timeModule.currentTime.ToString();
|
Time.text = CozyWeather.instance.timeModule.currentTime.ToString();
|
||||||
WeatherIcon.sprite = cozyManager.CurrentWeatherInfo.Sprite;
|
WeatherIcon.sprite = CozyManager.Inst.CurrentWeatherInfo.Sprite;
|
||||||
|
|
||||||
yield return new WaitForSeconds(updateTime);
|
yield return new WaitForSeconds(updateTime);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user