예제 #1
0
    public int GetLikesValue(AnswerResultType resultType)
    {
        foreach (AnswerResult result in answerResults)
        {
            if (result.resultType == resultType)
            {
                return(result.likesValue);
            }
        }

        Debug.LogError(string.Format("The result type '{0}' is not handled at this rank.", resultType.ToString()));

        return(0);
    }
예제 #2
0
    public string GetComment(AnswerResultType resultType)
    {
        foreach (SocietyResult result in societyResults)
        {
            if (result.resultType == resultType)
            {
                return(result.comment);
            }
        }

        Debug.LogError(string.Format("No text has been linked with the society for the resultType ({0}).", resultType.ToString()));

        return(string.Empty);
    }