4public class UIBar : MonoBehaviour
12 public void Refresh(
float current,
float max)
19 image.Rect().SetAnchor(0f, 0f, Mathf.Clamp(progress + 0.1f, 0.1f, 1f), 1f);
22 if (progress >= 1f && base.gameObject.activeSelf)
24 base.gameObject.SetActive(value:
false);
26 else if (progress < 1f && !base.gameObject.activeSelf)
28 base.gameObject.SetActive(value:
true);
void Refresh(float progress)
void Refresh(float current, float max)