IELoadBundle.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using Newtonsoft.Json.Linq;
  6. public class IELoadBundle : MonoBehaviour
  7. {
  8. // Use this for initialization
  9. void Start()
  10. {
  11. if (UpdateAndSDK.IsReLog())
  12. {
  13. LogHelper.Log("现在是注销3333");
  14. // FindAndDelGameObject("MonoSingleton/UI_GuideManager");
  15. // UpdateAndSDK.DeleteObjectByTag();
  16. }
  17. else
  18. {
  19. LogHelper.Log("运行这里");
  20. //AssemblyHelper.Instance.InitializeAssembly(Constant.AssemblyFilePath, Constant.AssemblyName);
  21. //Destroy(GameObject.Find("MonoSingleton/PanelHelper"));
  22. //Destroy(GameObject.Find("MonoSingleton/ResourceHelper"));
  23. //LogHelper.Log(LocalSettings.DefaultUserName);
  24. //Destroy(GameObject.Find("MonoSingleton/NetHelper"));
  25. //UpdateAndSDK.InitPrefab();
  26. //UpdateAndSDK.InitSplashBindScript();
  27. }
  28. StartCoroutine(LoadInit());
  29. }
  30. IEnumerator LoadInit()
  31. {
  32. SensWordFilter.Instance.Init();
  33. //GameCfg.Init();
  34. while (true)
  35. {
  36. if (!GameCfg.DownloadIsOver)
  37. {
  38. yield return null;
  39. }
  40. else
  41. {
  42. PanelHelper.Instance.ShowPanel("UI_NewLoginWindow", (ab) =>
  43. {
  44. //// 关闭Loading
  45. //PanelHelper.Instance.ShowPanel("UI_NoticeWindow", null, null, false, true, (ac) =>
  46. //{
  47. //});
  48. });
  49. break;
  50. }
  51. }
  52. }
  53. }