示例#1
0
        /// <summary>
        /// 加载核心字段数据
        /// </summary>
        public void Awake()
        {
            Instance = this;

            UIPackage.AddPackage("FGUI/UI_CheckUpdate");

            //GRoot的参数初始化
            GRoot.inst.SetContentScaleFactor(1280, 720, UIContentScaler.ScreenMatchMode.MatchWidthOrHeight);
            UIConfig.buttonSound     = (NAudioClip)UIPackage.GetItemAssetByURL("ui://lb36ex7oav6g0");
            UIConfig.modalLayerColor = new Color(186f, 85f, 211f, 0.4f);
        }
示例#2
0
        /// <summary>
        /// 加载核心字段数据
        /// </summary>
        public void Awake()
        {
            Instance               = this;
            _DicAllUIForms         = new Dictionary <Type, BaseUIForms>();
            _DicCurrentShowUIForms = new Dictionary <Type, BaseUIForms>();
            _StaCurrentUIForms     = new Stack <BaseUIForms>();

            //加载UI包
#if UNITY_EDITOR
            UIPackage.AddPackage("UI/ASource");
#else
            //加载AB包
#endif
            //Groot的参数初始化


            GRoot.inst.SetContentScaleFactor(1136, 640, UIContentScaler.ScreenMatchMode.MatchWidthOrHeight);
            UIConfig.buttonSound     = (AudioClip)UIPackage.GetItemAssetByURL("ui://ASource/buttonclick");
            UIConfig.modalLayerColor = new Color(186f, 85f, 211f, 0.4f);
        }
示例#3
0
        /// <summary>
        /// 加载核心字段数据
        /// </summary>
        public void Awake()
        {
            Instance               = this;
            _DicAllUIForms         = new Dictionary <Type, BaseUIForms>();
            _DicCurrentShowUIForms = new Dictionary <Type, BaseUIForms>();
            _StaCurrentUIForms     = new Stack <BaseUIForms>();

            //加载UI包
#if UNITY_EDITOR
            UIPackage.AddPackage("UI/ASource");
#else
//加载AB包
#endif

            //Groot的参数初始化
            UIConfig.defaultFont = "Microsoft YaHei";
            UIPackage.AddPackage("UI/Common");
            GRoot.inst.SetContentScaleFactor(1136, 640, UIContentScaler.ScreenMatchMode.MatchWidthOrHeight);
            UIConfig.buttonSound        = (AudioClip)UIPackage.GetItemAssetByURL("ui://ASource/buttonclick");
            UIConfig.modalLayerColor    = new Color(186f, 85f, 211f, 0.4f);
            UIConfig.globalModalWaiting = "ui://jfcixih7lfw017";
            UIConfig.windowModalWaiting = "ui://Common/WindowModalWaiting";
        }