private void OnPlayTalk(string content, int type, Vector2 startPos, Vector2 endPos) { if (type == 0) { this.m_currentRoot = this.m_leftRoot; } else if (type == 1) { this.m_currentRoot = this.m_rightRoot; } this.m_currentRoot.SetData(content, startPos, endPos); this.m_currentRoot.Visible = true; }
protected override void OnInit() { base.OnInit(); this.m_leftRoot = Make <GuidNewTalkItem>("left"); this.m_rightRoot = Make <GuidNewTalkItem>("right"); }