Exemple #1
0
    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);
    }
Exemple #2
0
    public string dioOut(responceType type, string patronName)
    {
        string dioToSend = @jsonObject[patronName][(int)type][Random.Range(0, jsonObject[patronName][(int)type].Count)].str;

        return(dioToSend);
    }