void Start() { temperature = UCE_Global.env_temperature; if (type == Type.Burner) { position = gameObject.transform.position; UCE_Global.Register(this); } }
void UpdateTemperature() { string tempStr; if (insideHeatable) { tempStr = "[" + insideHeatable.temperature.ToString("f1") + "]"; } else { tempStr = UCE_Global.GetTemperature(transform.position).ToString("f1"); } ShowNameOnTouch.SetText(myObject, tempStr + "℃"); }