//tag: print public void PrintText(Dictionary <string, string> data) { Debug.Log("[Print Text]"); string text = data["text"]; CurrentMainTextBox.SetText(text); }
//change current main text box public void OnCurrent(Dictionary <string, string> data) { Debug.Log("[Current]"); string layer; if (data.ContainsKey("layer")) { layer = data["layer"]; if (_textBoxes.ContainsKey(layer)) { Debug.LogFormat("change main textbox to: {0}", layer); CurrentMainTextBox = _textBoxes[layer]; CurrentMainTextBox.SetVisible(true); } else { Debug.LogFormat("can not change main textbox: {0}", layer); } } else { Debug.LogFormat("message error!"); } }
//Tag: [r] public void Reline() { CurrentMainTextBox.Reline(); }
//Tag: [CM] public void ClearMessage(Dictionary <string, string> data) { CurrentMainTextBox.ClearMessage(); }