示例#1
0
 void Start()
 {
     temperature = UCE_Global.env_temperature;
     if (type == Type.Burner)
     {
         position = gameObject.transform.position;
         UCE_Global.Register(this);
     }
 }
示例#2
0
        void UpdateTemperature()
        {
            string tempStr;

            if (insideHeatable)
            {
                tempStr = "[" + insideHeatable.temperature.ToString("f1") + "]";
            }
            else
            {
                tempStr = UCE_Global.GetTemperature(transform.position).ToString("f1");
            }
            ShowNameOnTouch.SetText(myObject, tempStr + "℃");
        }