/// <summary> /// Awake is called when the script instance is being loaded. /// </summary> void Awake() { this.playerResponses = new List <PlayerDialog>(); int i = 0; foreach (Transform child in this.transform) { PlayerDialog dialog = child.GetComponent <PlayerDialog>(); if (dialog) { dialog.setKeyCode(responseKeyCodes[i]); i += 1; this.playerResponses.Add(dialog); } NPCDialog npcContinuation = child.GetComponent <NPCDialog>(); if (npcContinuation) { this.npcContinuations.Add(npcContinuation); } } this.plotFilter = this.GetComponent <PlotFilter>(); }