public static void OnDisableInput() { if (instance == null) { return; } instance.GetComponent <ScrollRect>().enabled = false; }
void UpdateUI(float progress) { foreach (var LoadingBar in LoadingBarList) { if (LoadingBar.GetComponent <Image>() != null) { LoadingBar.GetComponent <Image>().fillAmount = progress; } else if (LoadingBar.GetComponent <Text>() != null) { LoadingBar.GetComponent <Text>().text = (int)(progress * 100) + " %"; } } }