Ejemplo n.º 1
0
    public static void OnDisableInput()
    {
        if (instance == null)
        {
            return;
        }

        instance.GetComponent <ScrollRect>().enabled = false;
    }
Ejemplo n.º 2
0
 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) + " %";
         }
     }
 }