Example #1
0
        public void Init()
        {
            rectTransform = GameObject.Instantiate(ResManager.Instance.Load <GameObject>("prefabs", "ABRes/Prefabs/UI/Loading/Window_Login.prefab")).transform as RectTransform;
            GameLauncher.AddToUI(rectTransform);
            Hide();


            btn_Login = rectTransform.Find("btn_Login").GetComponent <Button>();



            //GameLauncher.Instance.StartCoroutine(ABManager.Instance.DownloadVersionFile(ABManager.Instance.VERSIONPATH, DownloadVersionFileComplete));
        }
Example #2
0
        public void Init()
        {
            rectTransform = GameObject.Instantiate(ResManager.Instance.Load <GameObject>("loading", "ABRes/Loading/Window_Loading.prefab")).transform as RectTransform;
            GameLauncher.AddToUI(rectTransform);

            txt_Loading      = rectTransform.Find("txt_Loading").GetComponent <Text>();
            txt_Loading.text = "下载AB: 0";
            slider_Progress  = rectTransform.Find("slider_Progress").GetComponent <Slider>();

            ABManager.Instance.DownloadABs(DownloadAB, LoadAB, DownloadAndLoadComplete);

            //GameLauncher.Instance.StartCoroutine(ABManager.Instance.DownloadVersionFileCorountine(ABManager.Instance.VERSIONPATH, DownloadVersionFileComplete));
        }