Esempio n. 1
0
        private void LoadUI(ref UIOpenInfo _info)
        {
            string uiPath = _info.UIPath;

            _info.UIObj = BasicsResLoad.Load <GameObject>(uiPath);
            OnLoadUIPrefabCallBack(ref _info);
        }
Esempio n. 2
0
        /// <summary>
        /// 创建 与服务器交互 等待圈
        /// </summary>
        /// <param name="parentObj"></param>
        /// <returns></returns>
        private GameObject CreatLoadingBar(GameObject parentObj)
        {
            if (parentObj == null)
            {
                parentObj = UICtrl.Instance._UIManager.UICamera.gameObject;
            }

            GameObject prefab = BasicsResLoad.Load <GameObject>(GameAssetsPath.Prafab_LoadingBar_Path);
            GameObject go     = GUITools.AddChild(parentObj, prefab);

            return(go);
        }
Esempio n. 3
0
        /// <summary>
        /// 创建场景Notice
        /// </summary>
        /// <param name="parentObj"></param>
        /// <param name="_path"></param>
        /// <returns></returns>
        private GameObject CreatNotice(GameObject parentObj, string _path)
        {
            if (parentObj == null)
            {
                parentObj = UICtrl.Instance._UIManager.UIScenePath.gameObject;
            }

            GameObject prefab = BasicsResLoad.Load <GameObject>(_path);
            GameObject go     = GUITools.AddChild(parentObj, prefab);

            return(go);
        }
Esempio n. 4
0
        /// <summary>
        /// 创建Tip框
        /// </summary>
        private GameObject CreatTips(GameObject parentObj)
        {
            GameObject go = null;

            if (parentObj == null)
            {
                parentObj = UICtrl.Instance._UIManager.UICamera.gameObject;
            }
            if (parentObj.activeSelf)
            {
                GameObject prefab = BasicsResLoad.Load <GameObject>(GameAssetsPath.Prefab_UINoticeTip_Path);
                go = GUITools.AddChild(parentObj, prefab);
            }

            return(go);
        }