using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UniRx;
public class OutsideTemperature : MonoBehaviour
{
[SerializeField]
private TextMeshProUGUI _temperature;
private static readonly string TAG = "OutsideTemperature";
void Start()
{
DataCenter.Temperature.Subscribe(i => {
Log.I(TAG, "Temperature select value: " + i);
_temperature.text = Mathf.FloorToInt(i).ToString();
}).AddTo(this);
}
}