public void ShowManual(float thisPercentDone, string loadingMessage = "", string unpackingMessage = "", string loadedMessage = "")
 {
     //if we are not showing a status
     if (_bundlesToCheck.Count == 0)
     {
         StopCoroutine("DelayedHide");
         ResetAndHide();
         _loadingMessage   = loadingMessage != "" ? loadingMessage : loadingText;
         _unpackingMessage = unpackingMessage != "" ? unpackingMessage : unpackingText;
         _loadedMessage    = loadedMessage != "" ? loadedMessage : loadedText;
         percentDone       = thisPercentDone;
         string donePercent = Mathf.Round(percentDone * 100).ToString();
         if (indicatorText != null)
         {
             indicatorText.text = _loadingMessage + "(" + donePercent + "%)";
         }
         if (indicatorObject != null)
         {
             indicatorObject.SetActive(true);
         }
         if (indicatorBar != null)
         {
             indicatorBar.value = percentDone;
         }
         if (indicatorBarText != null)
         {
             indicatorBarText.text = donePercent + "%";
         }
         status = statusOpts.Downloading;
     }
 }
        public void UpdateProgress()
        {
            string donePercent = Mathf.Round(percentDone * 100).ToString();
            string msg         = _loadingMessage;

            if (donePercent == "99")
            {
                msg    = _unpackingMessage;
                status = statusOpts.Unpacking;
            }
            if (donePercent == "100")
            {
                msg    = _loadedMessage;
                status = statusOpts.Complete;
            }
            if (indicatorText != null)
            {
                indicatorText.text = msg + " (" + donePercent + "%)";
            }
            if (indicatorBar != null)
            {
                indicatorBar.value = percentDone;
            }
            if (indicatorBarText != null)
            {
                indicatorBarText.text = donePercent + "%";
            }
        }
 public void Show(List <string> bundlesToCheck, string loadingMessage = "", string unpackingMessage = "", string loadedMessage = "")
 {
     StopCoroutine("DelayedHide");
     ResetAndHide();
     _bundlesToCheck.AddRange(bundlesToCheck);
     _loadingMessage   = loadingMessage != "" ? loadingMessage : loadingText;
     _unpackingMessage = unpackingMessage != "" ? unpackingMessage : unpackingText;
     _loadedMessage    = loadedMessage != "" ? loadedMessage : loadedText;
     if (indicatorText != null)
     {
         indicatorText.text = _loadingMessage + "(0%)";
     }
     if (indicatorObject != null)
     {
         indicatorObject.SetActive(true);
     }
     status = statusOpts.Downloading;
 }
 void ResetAndHide()
 {
     if (indicatorBar != null)
     {
         indicatorBar.value = 0;
     }
     if (indicatorText != null)
     {
         indicatorText.text = "";
     }
     if (indicatorBarText != null)
     {
         indicatorBarText.text = "0%";
     }
     if (indicatorObject != null)
     {
         indicatorObject.SetActive(false);
     }
     status = statusOpts.Idle;
 }