lvjincheng 4 лет назад
Родитель
Сommit
e88a5a56db

+ 2 - 2
Assets/BowArrow/Resources/Prefabs/BluetoothHolder.prefab

@@ -614,7 +614,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 20, y: 20}
+  m_AnchoredPosition: {x: 180, y: 20}
   m_SizeDelta: {x: 160, y: 50}
   m_Pivot: {x: 0, y: 0}
 --- !u!222 &723330277859252992
@@ -1926,7 +1926,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 20, y: 20}
+  m_AnchoredPosition: {x: 180, y: 20}
   m_SizeDelta: {x: 160, y: 50}
   m_Pivot: {x: 0, y: 0}
 --- !u!222 &4155488362344826361

+ 1 - 1
Assets/BowArrow/Scripts/View/DeviceBatteryView.cs

@@ -65,6 +65,6 @@ public class DeviceBatteryView : MonoBehaviour
         Image img = this.transform.Find($"Layout/Frame{deviceID}/Bar").GetComponent<Image>();
         Text txt =this.transform.Find($"Layout/Frame{deviceID}/Value").GetComponent<Text>();
         img.fillAmount = value / 100f;
-        txt.text = ((int) value).ToString();
+        txt.text = ((int) value) + "%";
     }
 }