| | |
| | |
|
| | | string stepDescription = string.Empty;
|
| | |
|
| | | float refProgress = 0f;
|
| | | float behaviourProgress = 0f;
|
| | | float trueProgress = 0f;
|
| | |
|
| | | float timer = 0.1f;
|
| | | float interval = 0.1f;
|
| | |
| | | {
|
| | | backGroundTimer = 0f;
|
| | | backGroundIndex = 0;
|
| | | refProgress = 0f;
|
| | | behaviourProgress = 0f;
|
| | | trueProgress = 0f;
|
| | | m_ProgressSlider.ResetValue(0f);
|
| | | m_AlphaTween.SetStartState();
|
| | |
|
| | |
| | |
|
| | | void UpdateLoadingProgress(Launch.LaunchStage _stage, float _progress)
|
| | | {
|
| | | trueProgress = Mathf.Max(_progress, behaviourProgress);
|
| | | behaviourProgress = _progress;
|
| | | switch (_stage)
|
| | | {
|
| | | case Launch.LaunchStage.AssetCopy:
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (trueProgress > 0.9599f)
|
| | | {
|
| | | behaviourProgress = Mathf.Clamp01(behaviourProgress + Time.deltaTime * 0.2f);
|
| | | }
|
| | | else
|
| | | {
|
| | | behaviourProgress = Mathf.SmoothDamp(behaviourProgress, trueProgress, ref refProgress, 0.2f);
|
| | | }
|
| | |
|
| | | m_ProgressSlider.value = behaviourProgress;
|
| | | m_Progress.text = VersionUtility.Instance.IsShangGu() ? stepDescription :
|
| | | StringUtility.Contact(stepDescription, Mathf.RoundToInt(behaviourProgress * 100), "%");
|