12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using Newtonsoft.Json.Linq;
- public class IELoadBundle : MonoBehaviour
- {
- // Use this for initialization
- void Start()
- {
- if (UpdateAndSDK.IsReLog())
- {
- LogHelper.Log("现在是注销3333");
- // FindAndDelGameObject("MonoSingleton/UI_GuideManager");
- // UpdateAndSDK.DeleteObjectByTag();
- }
- else
- {
- LogHelper.Log("运行这里");
- //AssemblyHelper.Instance.InitializeAssembly(Constant.AssemblyFilePath, Constant.AssemblyName);
- //Destroy(GameObject.Find("MonoSingleton/PanelHelper"));
- //Destroy(GameObject.Find("MonoSingleton/ResourceHelper"));
- //LogHelper.Log(LocalSettings.DefaultUserName);
- //Destroy(GameObject.Find("MonoSingleton/NetHelper"));
- //UpdateAndSDK.InitPrefab();
- //UpdateAndSDK.InitSplashBindScript();
- }
- StartCoroutine(LoadInit());
- }
- IEnumerator LoadInit()
- {
- SensWordFilter.Instance.Init();
- //GameCfg.Init();
- while (true)
- {
- if (!GameCfg.DownloadIsOver)
- {
- yield return null;
- }
- else
- {
- PanelHelper.Instance.ShowPanel("UI_NewLoginWindow", (ab) =>
- {
- //// 关闭Loading
- //PanelHelper.Instance.ShowPanel("UI_NoticeWindow", null, null, false, true, (ac) =>
- //{
- //});
- });
- break;
- }
- }
- }
- }
|