//设置爱调研所需参数 public static void SetADYParamWithKey(string key, string value) { #if UNITY_WP8 && !UNITY_EDITOR #elif UNITY_ANDROID && !UNITY_EDITOR System.Text.StringBuilder sb = new System.Text.StringBuilder(); JsonWriter writer = new JsonWriter(sb); writer.WriteObjectStart(); writer.WritePropertyName("key"); writer.Write(key); writer.WritePropertyName("value"); writer.Write(value); writer.WriteObjectEnd(); AndroidHelper.doSdk("setADYParamWithKey", sb.ToString()); #elif UNITY_IPHONE && !UNITY_EDITOR IOSHelper.SDK_SetADYParamWithKey(key, value); #else #endif }