This commit is contained in:
2025-11-03 14:25:56 +08:00
parent 84f14dade5
commit 1ac3732bda
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ namespace Main
_fill = this.transform.Find("Fill").GetComponent<Image>();
_fillText = _fill.transform.Find("FillText").GetComponent<Text>();
_fillMessage = _fill.transform.Find("FillMessage").GetComponent<Text>();
_fill.fillAmount = 0;
//_fill.fillAmount = 0;
_fillText.text = "0%";
}
@@ -22,7 +22,7 @@ namespace Main
public async void SetProgressBarValue(string message, float value)
{
this.gameObject.SetActive(true);
_fill.fillAmount = value;
//_fill.fillAmount = value;
_fillMessage.text = message;
_fillText.text = $"{value:P0}";
if (value >= 1)