Ejemplo n.º 1
0
        private void OnUpdateProgress(float curLoaded, float totalSize)
        {
            if (totalSize <= 0)
            {
                return;
            }

            var v = curLoaded / totalSize;

            mSliderGameObject.SetActive(v < 1);
            mSlider.value     = v;
            mProgressTip.text = string.Format("正在更新:{0}/{1}", Launch.GetSizeStr(curLoaded), Launch.GetSizeStr(totalSize));
        }