////-----------------------------------------------------------------------
////
//// Copyright Loyal. All rights reserved.
////
////-----------------------------------------------------------------------
//using System.Collections;
//using System.Collections.Generic;
//using System.IO;
//using UnityEngine;
//using UnityEngine.UI;
/////
///// 更 新 类
/////
//public class UpdateLauncher : MonoBehaviour
//{
// ///
// /// 总 进 度 条
// ///
// private Slider m_updateSlider = null;
// ///
// /// 文 件 进 度 条
// ///
// private Slider m_updateFileSlider = null;
// ///
// /// 是 否 第 一 次 进 入
// ///
// private bool firstIN = true;
// ///
// /// awake 函 数
// ///
// public void Awake()
// {
// AssetGame_VersionManager.Ins.SetAwake();
// }
// void GUI()
// {
// }
// ///
// /// 游 戏 入 口
// ///
// public void Start()
// {
// //this.m_updateSlider = transform.Find("Slider").GetComponent();
// //this.m_updateFileSlider = transform.Find("FileSlider").GetComponent();
// 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);
// ////}
// }
// ///
// /// 更 新
// ///
// 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();
// }
// }
// ///
// /// 更 新 完 毕 进 入 功 能
// ///
// 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;
// }
// }
//}