| | |
| | | [SerializeField] Text m_ContentText;
|
| | |
|
| | | [SerializeField] Text m_NextText;
|
| | | Dictionary<int, string> PlayerIcon = new Dictionary<int, string>();
|
| | |
|
| | | int[] sPeaker;//对话对应半身像(0为主角/1为NPC)
|
| | | int taskIndex = 0;//获取当前的任务
|
| | |
| | | var config = FuncConfigConfig.Get("TaskContinue");
|
| | | FabaoId = int.Parse(config.Numerical1);
|
| | | AwaitSecond = int.Parse(config.Numerical2);
|
| | | PlayerHead();
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | |
| | | break;
|
| | | default:
|
| | | break;
|
| | | }
|
| | | }
|
| | | private void PlayerHead()
|
| | | {
|
| | | string[] headStr1 = FuncConfigConfig.Get("StoryTaskIcon").Numerical1.Split('|');
|
| | | string[] headStr2 = FuncConfigConfig.Get("StoryTaskIcon").Numerical2.Split('|');
|
| | | for (int i = 0; i < headStr1.Length; i++)
|
| | | {
|
| | | if (!PlayerIcon.ContainsKey(int.Parse(headStr1[i])))
|
| | | {
|
| | | PlayerIcon.Add(int.Parse(headStr1[i]), headStr2[i]);
|
| | |
|
| | | }
|
| | | }
|
| | | }
|
| | |
|