Пример #1
0
        /// <summary>
        /// 立即写入文本
        /// </summary>
        public void WriteTextImmediately()
        {
            SubUITextWindow window = GetWritingWindow();

            if (window == null)
            {
                return;
            }

            window.WriteText();
        }
Пример #2
0
        protected override IEnumerator OnLoadingView()
        {
            m_TopTextWindow    = this.FindChildComponent <SubUITextWindow>("TopTextWindow");
            m_BottomTextWindow = this.FindChildComponent <SubUITextWindow>("BottomTextWindow");
            m_GlobalTextWindow = this.FindChildComponent <SubUITextWindow>("GlobalTextWindow");

            m_TopTextWindow.textWriteDone.AddListener(TopTextWindow_TextWriteDone);
            m_BottomTextWindow.textWriteDone.AddListener(BottomTextWindow_TextWriteDone);
            m_GlobalTextWindow.textWriteDone.AddListener(GlobalTextWindow_TextWriteDone);

            MessageCenter.AddListener(MessageNames.k_Map_Talk, Map_Talk);

            yield break;
        }
Пример #3
0
 private void BottomTextWindow_TextWriteDone(SubUITextWindow textWindow)
 {
     TextWindow_TextWriteDone("bottom", textWindow.text);
 }
Пример #4
0
 private void GlobalTextWindow_TextWriteDone(SubUITextWindow textWindow)
 {
     TextWindow_TextWriteDone("global", textWindow.text);
 }
Пример #5
0
 private void TopTextWindow_TextWriteDone(SubUITextWindow textWindow)
 {
     TextWindow_TextWriteDone("top", textWindow.text);
 }