/// <summary> /// 立即写入文本 /// </summary> public void WriteTextImmediately() { SubUITextWindow window = GetWritingWindow(); if (window == null) { return; } window.WriteText(); }
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; }
private void BottomTextWindow_TextWriteDone(SubUITextWindow textWindow) { TextWindow_TextWriteDone("bottom", textWindow.text); }
private void GlobalTextWindow_TextWriteDone(SubUITextWindow textWindow) { TextWindow_TextWriteDone("global", textWindow.text); }
private void TopTextWindow_TextWriteDone(SubUITextWindow textWindow) { TextWindow_TextWriteDone("top", textWindow.text); }