Ejemplo n.º 1
0
 /// <summary>
 /// 原有基础上添加文字
 /// </summary>
 /// <param name="currentPiece"></param>
 /// <param name="dialog">文字</param>
 /// <param name="voice">对应语音</param>
 public void AddText(TextPiece currentPiece, string dialog)
 {
     // 设置成禁用右键和滚轮?
     DataManager.GetInstance().BlockRightClick();
     DataManager.GetInstance().BlockWheel();
     this.currentPiece = currentPiece;
     // 不显示姓名
     namePanel.SetActive(false);
     // 替换主角姓名文本
     dialog = ChangeName(dialog);
     SetContentStyle();
     // 打字机
     te.enabled = true;
     te.ResetTo(dialog);
     typewriting = true;
     // 关闭头像
     avatarPanel.SetActive(false);
 }