示例#1
0
        /// <summary>
        /// 初始化UI管理器
        /// </summary>
        private void InitFrameModule()
        {
            UILogicMapper.Initialize();

            ScreenAspectRatio = (float)Screen.width / Screen.height;

            ResetUIRootForScreen(UIRoot);
        }
示例#2
0
        /// <summary>
        /// 窗口加载回调,初始化窗口逻辑
        /// </summary>
        private void OnFrameLoaded(GUIFrame loadedFrame)
        {
            loadedFrame.FrameRootTransform.SetParent(UIRoot.transform, Vector3.zero, Quaternion.identity, Vector3.one);

            UILogicMapper.MakeUILogic(loadedFrame);

            if (this.m_preloadUISet.Contains(loadedFrame.ResName))
            {
                this.m_preloadUISet.Remove(loadedFrame.ResName);
            }
            else
            {
                ShowLoadedFrame(loadedFrame);
            }
        }