public override void Log(string eventID, Dictionary <string, object> data)
    {
        Dictionary <string, string> report = new Dictionary <string, string>();

        if (data == null)
        {
            data = new Dictionary <string, object>();
        }

        foreach (var item in data)
        {
            report.Add(item.Key, item.Value.ToString());
        }

        DCEvent.onEventBegin(eventID, report);
        DCEvent.onEventEnd(eventID);
    }
Ejemplo n.º 2
0
    public static void setEffectPoint(string pointId, Dictionary <string, string> dictionary)
    {
        if (pointId == null)
        {
            return;
        }
#if UNITY_EDITOR
#elif UNITY_ANDROID
        using (AndroidJavaObject ajo = DCEvent.dicToMap(dictionary))
        {
            task.CallStatic("setEffectPoint", pointId, ajo);
        }
#elif UNITY_IPHONE
        string json = LitJson.JsonMapper.ToJson(dictionary);
        dcSetEffectPoint(pointId, json);
#elif UNITY_WP8
        DataEyeWP8.DCTask.fail(taskId, reason);
#endif
    }