1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- ////-----------------------------------------------------------------------
- //// <copyright file="UpdateLauncher.cs" company="Loyal">
- //// Copyright Loyal. All rights reserved.
- //// </copyright>
- ////-----------------------------------------------------------------------
- //using System.Collections;
- //using System.Collections.Generic;
- //using System.IO;
- //using UnityEngine;
- //using UnityEngine.UI;
- ///// <summary>
- ///// 更 新 类
- ///// </summary>
- //public class UpdateLauncher : MonoBehaviour
- //{
- // /// <summary>
- // /// 总 进 度 条
- // /// </summary>
- // private Slider m_updateSlider = null;
- // /// <summary>
- // /// 文 件 进 度 条
- // /// </summary>
- // private Slider m_updateFileSlider = null;
- // /// <summary>
- // /// 是 否 第 一 次 进 入
- // /// </summary>
- // private bool firstIN = true;
- // /// <summary>
- // /// awake 函 数
- // /// </summary>
- // public void Awake()
- // {
- // AssetGame_VersionManager.Ins.SetAwake();
- // }
- // void GUI()
- // {
- // }
- // /// <summary>
- // /// 游 戏 入 口
- // /// </summary>
- // public void Start()
- // {
- // //this.m_updateSlider = transform.Find("Slider").GetComponent<Slider>();
- // //this.m_updateFileSlider = transform.Find("FileSlider").GetComponent<Slider>();
- // AssetGame_VersionManager.Ins.SetRun();
- // AssetUI_ShowLog.Ins.SetRun();
- // ////for (int i = 0; i < 23; i++)
- // ////{
- // //// LogHelper.Log("clip/map_000" + string .Format ("{0:D2}",i));
- // //// listsp.Add(Resources.Load("clip/map_000" + string.Format("{0:D2}", i), typeof(Sprite)) as Sprite);
- // ////}
- // }
- // /// <summary>
- // /// 更 新
- // /// </summary>
- // private void Update()
- // {
- // if (AssetGame_VersionManager.Ins.getState == AssetGame_VersionManager.EUpdateState.LoadServerRes)
- // {
- // this.m_updateSlider.value = 1.0f * AssetGame_ResourceUpdate.Ins.GetNeedDownFilesCount / AssetGame_ResourceUpdate.Ins.GetMaxBundleNum;
- // this.m_updateFileSlider.value = AssetGame_ResourceUpdate.Ins.GetProgress;
- // }
- // if (AssetGame_VersionManager.Ins.getState == AssetGame_VersionManager.EUpdateState.Over && this.firstIN)
- // {
- // this.Entrance();
- // }
- // }
- // /// <summary>
- // /// 更 新 完 毕 进 入 功 能
- // /// </summary>
- // private void Entrance()
- // {
- // this.firstIN = false;
- // if (Application.platform == RuntimePlatform.Android)
- // {
- // AssemblyHelper.Instance.InitializeAssembly(Constant.AssemblyFilePath, Constant.AssemblyName);
- // Application.LoadLevel(7);
- // return;
- // }
- // else if (Application.platform == RuntimePlatform.WindowsEditor)
- // {
- // AssemblyHelper.Instance.InitializeAssembly(Constant.AssemblyFilePath, Constant.AssemblyName);
- // Application.LoadLevel(7);
- // return;
- // }
- // }
- //}
|