public ArrayList getResponses(int p_id) { if(debug) Debug.Log("Getting Responses for Node: "+p_id); foreach (KeyValuePair<Node, ArrayList> pair in graph) { if(pair.Key.getId() == p_id) return pair.Value; } return null; }
//Returns the list of responses that the player can say to the NPC public override ArrayList GetResponses() { if (currentNode == null) { return(null); } return(g.getResponses(currentNode.getId())); }