Exemple #1
0
        public static void Show(string title, float progress)
        {
            ms_instance = UIRoot.Find <AppLoading>("AppLoading");


            if (ms_instance != null)
            {
                if (!ms_instance.gameObject.activeSelf)
                {
                    ms_instance.gameObject.SetActive(true);
                }
                ms_instance.ShowProgress(title, progress);
            }
        }
        private void InitVersion()
        {
            //初始化版本管理器,并更新版本
            VersionManager.Instance.Init();
            VersionManager.onUpdateProgress += (progress) =>
            {
                AppLoading.Show("版本更新中...", progress);
            };
            VersionManager.onUpdateComplete += () =>
            {
                AppLoading.Hide();

                //当版本更新完成后,或者版本检查完成后,初始化服务层的模块
                InitServices();
            };
        }
Exemple #3
0
 private void Destroy()
 {
     ms_instance = null;
 }