public TalkItem SpawnTalkItem() { TalkItem itemRes = Resources.Load <TalkItem>("TalkItem"); TalkItem item = Instantiate(itemRes, content); TalkItemCache.Add(item); return(item); }
/// <summary> /// 发送消息 /// </summary> /// <param name="message"></param> public void Say(string message) { TalkItem talkItem = DialogueManager.Instance.SpawnTalkItem(); talkItem.SetTalkerData(this, message); }