public string specificDioOutByIndex(responceType type, byte indexToGet, string patronName) { string dioToSend = @jsonObject[patronName][(int)type][indexToGet].str; if (dioToSend == null) { dioToSend = dioOut(type, patronName); } return(dioToSend); }
public string dioOut(responceType type, string patronName) { string dioToSend = @jsonObject[patronName][(int)type][Random.Range(0, jsonObject[patronName][(int)type].Count)].str; return(dioToSend); }