/// <summary> /// Gets a random word from the JSON input. /// </summary> Payload GetRandomWord() { JSONPayload jInfo = jsonLoader.GetJSONInfo(); int index = Random.Range(0, jInfo.payload.Count); return(jInfo.payload[index]); }