예제 #1
0
        public TalkItem SpawnTalkItem()
        {
            TalkItem itemRes = Resources.Load <TalkItem>("TalkItem");
            TalkItem item    = Instantiate(itemRes, content);

            TalkItemCache.Add(item);
            return(item);
        }
예제 #2
0
        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="message"></param>
        public void Say(string message)
        {
            TalkItem talkItem = DialogueManager.Instance.SpawnTalkItem();

            talkItem.SetTalkerData(this, message);
        }