void OnTalk(int id, bool isNpc) { int questTalkIndex = questManager.GetQuestTalkIndex(id); string talkData = talkManager.GetTalk(id + questTalkIndex, talkIndex); if (talkData == null) { isMove = false; talkIndex = 0; questText.text = questManager.CheckQuest(id); Debug.Log(questManager.CheckQuest(id)); return; } if (isNpc) { talkText.text = talkData; portraitImage.sprite = talkManager.GetSprite(id); portraitImage.color = new Color(1, 1, 1, 1); } else { talkText.text = talkData; portraitImage.color = new Color(1, 1, 1, 0); } isMove = true; talkIndex++; }