Пример #1
0
    public static Badge FromJson(string json)
    {
        JsonBadge jsonBadge = JsonUtility.FromJson <JsonBadge>(json);
        Badge     badge     = FromJsonBadge(jsonBadge);

        return(badge);
    }
Пример #2
0
    public static Badge FromJsonBadge(JsonBadge jsonBadge)
    {
        Badge badge = new Badge(jsonBadge.id, jsonBadge.name, jsonBadge.description, jsonBadge.useNotification, jsonBadge.notificationMessage);

        return(badge);
    }