UpdateLauncher.cs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ////-----------------------------------------------------------------------
  2. //// <copyright file="UpdateLauncher.cs" company="Loyal">
  3. //// Copyright Loyal. All rights reserved.
  4. //// </copyright>
  5. ////-----------------------------------------------------------------------
  6. //using System.Collections;
  7. //using System.Collections.Generic;
  8. //using System.IO;
  9. //using UnityEngine;
  10. //using UnityEngine.UI;
  11. ///// <summary>
  12. ///// 更 新 类
  13. ///// </summary>
  14. //public class UpdateLauncher : MonoBehaviour
  15. //{
  16. // /// <summary>
  17. // /// 总 进 度 条
  18. // /// </summary>
  19. // private Slider m_updateSlider = null;
  20. // /// <summary>
  21. // /// 文 件 进 度 条
  22. // /// </summary>
  23. // private Slider m_updateFileSlider = null;
  24. // /// <summary>
  25. // /// 是 否 第 一 次 进 入
  26. // /// </summary>
  27. // private bool firstIN = true;
  28. // /// <summary>
  29. // /// awake 函 数
  30. // /// </summary>
  31. // public void Awake()
  32. // {
  33. // AssetGame_VersionManager.Ins.SetAwake();
  34. // }
  35. // void GUI()
  36. // {
  37. // }
  38. // /// <summary>
  39. // /// 游 戏 入 口
  40. // /// </summary>
  41. // public void Start()
  42. // {
  43. // //this.m_updateSlider = transform.Find("Slider").GetComponent<Slider>();
  44. // //this.m_updateFileSlider = transform.Find("FileSlider").GetComponent<Slider>();
  45. // AssetGame_VersionManager.Ins.SetRun();
  46. // AssetUI_ShowLog.Ins.SetRun();
  47. // ////for (int i = 0; i < 23; i++)
  48. // ////{
  49. // //// LogHelper.Log("clip/map_000" + string .Format ("{0:D2}",i));
  50. // //// listsp.Add(Resources.Load("clip/map_000" + string.Format("{0:D2}", i), typeof(Sprite)) as Sprite);
  51. // ////}
  52. // }
  53. // /// <summary>
  54. // /// 更 新
  55. // /// </summary>
  56. // private void Update()
  57. // {
  58. // if (AssetGame_VersionManager.Ins.getState == AssetGame_VersionManager.EUpdateState.LoadServerRes)
  59. // {
  60. // this.m_updateSlider.value = 1.0f * AssetGame_ResourceUpdate.Ins.GetNeedDownFilesCount / AssetGame_ResourceUpdate.Ins.GetMaxBundleNum;
  61. // this.m_updateFileSlider.value = AssetGame_ResourceUpdate.Ins.GetProgress;
  62. // }
  63. // if (AssetGame_VersionManager.Ins.getState == AssetGame_VersionManager.EUpdateState.Over && this.firstIN)
  64. // {
  65. // this.Entrance();
  66. // }
  67. // }
  68. // /// <summary>
  69. // /// 更 新 完 毕 进 入 功 能
  70. // /// </summary>
  71. // private void Entrance()
  72. // {
  73. // this.firstIN = false;
  74. // if (Application.platform == RuntimePlatform.Android)
  75. // {
  76. // AssemblyHelper.Instance.InitializeAssembly(Constant.AssemblyFilePath, Constant.AssemblyName);
  77. // Application.LoadLevel(7);
  78. // return;
  79. // }
  80. // else if (Application.platform == RuntimePlatform.WindowsEditor)
  81. // {
  82. // AssemblyHelper.Instance.InitializeAssembly(Constant.AssemblyFilePath, Constant.AssemblyName);
  83. // Application.LoadLevel(7);
  84. // return;
  85. // }
  86. // }
  87. //}