public override void ShowCurrentDialog() { if (dialogIndex < dialogList.Count) { DialogContent c = dialogList[dialogIndex]; talkerText.text = "" + c.talker + ": "; contentText.text = " " + c.content + " "; if (noticeText.text == "") { noticeText.Hide(); } if (c.talker == "") { talkerText.Hide(); } if (c.isPlayer) { transform.position = playerPos; } else { transform.position = npcPos; } Open(); } else { Clear(); } }
public virtual void ShowCurrentDialog() { if (dialogIndex < dialogList.Count) { if (IsTyping()) { contentText.ShowFullContent(); return; } currentDialog = dialogList[dialogIndex]; string contentStr = prefix + currentDialog.content; JudgeContentSize(contentStr); talkerText.text = currentDialog.talker + ": \r\n"; contentText.TypingFX(contentStr, 0.048f); if (noticeText.text == "") { noticeText.Hide(); } if (currentDialog.talker == "") { talkerText.Hide(); } Open(); } else { Clear(); } }
public void AddContent(DialogContent dialogContent) { contentList.Add(dialogContent); }
public void AddContent(DialogContent content) { dialogList.Add(content); }