Ejemplo n.º 1
0
 public void SetValue(float value, float max, bool isWalkable)
 {
     _value      = value;
     _isWalkable = isWalkable;
     if (isWalkable)
     {
         _valueText.text      = GetLabelText(value);
         _mesh.material.color = UnityExtensions.MakeHeatColor(0, max, value, true);
     }
     else
     {
         _valueText.text      = "#";
         _mesh.material.color = new Color(1, 1, 1);
     }
 }