Files
EnglewoodLAB/Assets/Scripts/Objects/Thermostat.cs
SOOBEEN HAN f1894889ee <refactor> Octopus Twin 템플릿 적용
- 기능 외 UI 구조만 적용
- 프로젝트에 걸맞는 UI는 재작업 필요
2026-02-23 18:20:09 +09:00

27 lines
624 B
C#

using UnityEngine;
using EnglewoodLAB.Extensions;
using Cysharp.Threading.Tasks;
using EnglewoodLAB.UI;
namespace EnglewoodLAB
{
public class Thermostat : MonoBehaviour
{
public string machineCode;
public string thermostatName;
public ThermostatInfoItem thermostatIcon;
public Vector3 centerPos;
public async UniTask Init()
{
var newName = gameObject.name;
thermostatName = newName.Substring(newName.IndexOf("_") + 1).Trim();
centerPos = transform.GetMeshCenter();
await UniTask.CompletedTask;
}
}
}