public void Quiz(GameObject npcObj) { npcObject = npcObj; ObjData objData = npcObject.GetComponent <ObjData>(); for (answerIndex = 0; answerIndex < 3; answerIndex++) { answerData = talkManager.GetAnswer(objData.id, answerIndex); answerText[answerIndex].text = answerData.Split(':')[0]; } Talk(objData, objData.id, objData.isclear); talkPanel.SetActive(isQuiz); }