Exemplo n.º 1
0
        /// <summary>
        /// 立即写入文本
        /// </summary>
        public void WriteTextImmediately()
        {
            SubUITextWindow window = GetWritingWindow();

            if (window == null)
            {
                return;
            }

            window.WriteText();
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 private void BottomTextWindow_TextWriteDone(SubUITextWindow textWindow)
 {
     TextWindow_TextWriteDone("bottom", textWindow.text);
 }
Exemplo n.º 4
0
 private void GlobalTextWindow_TextWriteDone(SubUITextWindow textWindow)
 {
     TextWindow_TextWriteDone("global", textWindow.text);
 }
Exemplo n.º 5
0
 private void TopTextWindow_TextWriteDone(SubUITextWindow textWindow)
 {
     TextWindow_TextWriteDone("top", textWindow.text);
 }