Definition at line 4 of file UIBar.cs.
◆ Refresh() [1/2]
void UIBar.Refresh |
( |
float |
current, |
|
|
float |
max |
|
) |
| |
|
inline |
◆ Refresh() [2/2]
void UIBar.Refresh |
( |
float |
progress | ) |
|
|
inline |
Definition at line 17 of file UIBar.cs.
18 {
19 image.Rect().SetAnchor(0f, 0f, Mathf.Clamp(progress + 0.1f, 0.1f, 1f), 1f);
21 {
22 if (progress >= 1f && base.gameObject.activeSelf)
23 {
24 base.gameObject.SetActive(value: false);
25 }
26 else if (progress < 1f && !base.gameObject.activeSelf)
27 {
28 base.gameObject.SetActive(value: true);
29 }
30 }
31 }
References autoHide, and image.
◆ autoHide
◆ image
◆ textInfo
The documentation for this class was generated from the following file: