public void Create() { talk = Instantiate(talkPrefab); talk.transform.SetParent(UIManager.Instance.talkContainer); talk.transform.localScale = Vector3.one; var ink = talk.GetComponent <InkTalk>(); ink.inkFile = inkFile; ink.executeFunction = executeFunction; ink.storyScript = storyScript; ink.speaker = speaker; EventCenter.Broadcast("create_" + gameObject.name + "_talk", talk); UIManager.Instance.OpenTalk(talk); if (speaker) { speaker.StartTalkMode(); } }