| | |
| | | static public LaunchStage currentStage { get { return m_CurrentStage; } }
|
| | |
|
| | | static float m_Progress = 0f;
|
| | | static public float progress
|
| | | {
|
| | | static public float progress {
|
| | | get { return m_Progress; }
|
| | | set
|
| | | {
|
| | | set {
|
| | | if (m_Progress != value)
|
| | | {
|
| | | m_Progress = value;
|
| | |
| | | while (!SDKUtility.Instance.AssetCopyFinished)
|
| | | {
|
| | | timer += Time.deltaTime;
|
| | | progress = Mathf.Clamp(progressBuf + timer / duration * 0.3f, progressBuf, progressBuf + 0.3f);
|
| | | progress = Mathf.Clamp(progressBuf + timer / duration * 0.6f, progressBuf, progressBuf + 0.6f);
|
| | | yield return null;
|
| | | }
|
| | | }
|
| | |
| | | var decompressProgress = AssetDeCompressTask.DecompressAync(ResourcesPath.Instance.ExternalStorePath);
|
| | | while (!decompressProgress.done)
|
| | | {
|
| | | progress = progressBuf + decompressProgress.progress * 0.1f;
|
| | | progress = progressBuf + decompressProgress.progress * 0.3f;
|
| | | yield return null;
|
| | | }
|
| | |
|
| | |
| | | while (timer < 2f)
|
| | | {
|
| | | timer += Time.deltaTime;
|
| | | progress = progressBuf + timer * 0.5f * 0.2f;
|
| | | progress = progressBuf + timer * 0.5f * 0.1f;
|
| | | yield return null;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | break;
|
| | | case InstalledAsset.NullAsset:
|
| | | progress = 0.1f;
|
| | | progress = 1f;
|
| | | break;
|
| | | }
|
| | |
|
| | | #endif
|
| | |
|
| | | progress = 0f;
|
| | | #if UNITY_ANDROID
|
| | | m_CurrentStage = LaunchStage.ClientVersion;
|
| | | if (!Application.isEditor || InGameDownTestUtility.enable)
|