Commit ab17a83d authored by 王雪伟's avatar 王雪伟

添加Umeng上报

parent e9b45239
using System.Collections; using System.Collections;
using System.Linq; using System.Linq;
using Umeng;
using UnityEngine; using UnityEngine;
using UnityEngine.Android; using UnityEngine.Android;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
...@@ -42,7 +43,6 @@ public class Splash : MonoBehaviour ...@@ -42,7 +43,6 @@ public class Splash : MonoBehaviour
////加载开屏 ////加载开屏
//Debug.Log("加载开屏"); //Debug.Log("加载开屏");
StartCoroutine(loadSplash()); StartCoroutine(loadSplash());
} }
private IEnumerator loadSplash() private IEnumerator loadSplash()
{ {
......
...@@ -22,7 +22,7 @@ public final class UnionApplication extends Application { ...@@ -22,7 +22,7 @@ public final class UnionApplication extends Application {
super.onCreate(); super.onCreate();
AppliContext.init(this); AppliContext.init(this);
//UMConfigure.init(this, "602f890b668f9e17b8b31413", "xynt", UMConfigure.DEVICE_TYPE_PHONE, ""); UMU3DCommonSDK.init(this, "602f890b668f9e17b8b31413", "xynt", UMConfigure.DEVICE_TYPE_PHONE,"");
// TTAdConfig config = new TTAdConfig.Builder() // TTAdConfig config = new TTAdConfig.Builder()
// //.appId("5001121") // //.appId("5001121")
// .appId("5145269") // .appId("5145269")
......
...@@ -17,7 +17,7 @@ public class EventUtils ...@@ -17,7 +17,7 @@ public class EventUtils
map["event"] = Event; map["event"] = Event;
map["action"] = action; map["action"] = action;
HttpTool.Instance._PostEvent(JsonMapper.ToJson(map)); HttpTool.Instance._PostEvent(JsonMapper.ToJson(map));
//GA.Event(action); GA.Event(action);
} }
public static void OnEvent(string action, string value) public static void OnEvent(string action, string value)
{ {
...@@ -26,7 +26,7 @@ public class EventUtils ...@@ -26,7 +26,7 @@ public class EventUtils
map["action"] = action; map["action"] = action;
map["value"] = value; map["value"] = value;
HttpTool.Instance._PostEvent(JsonMapper.ToJson(map)); HttpTool.Instance._PostEvent(JsonMapper.ToJson(map));
//GA.Event(action, value); GA.Event(action, value);
} }
/// <summary> /// <summary>
...@@ -61,7 +61,7 @@ public class EventUtils ...@@ -61,7 +61,7 @@ public class EventUtils
{ {
HttpTool.Instance._GetEvent(entity.pullfail_tracking[0]); HttpTool.Instance._GetEvent(entity.pullfail_tracking[0]);
} }
//GA.Event(entity.actionName); GA.Event(entity.actionName);
} }
/// <summary> /// <summary>
...@@ -91,7 +91,7 @@ public class EventUtils ...@@ -91,7 +91,7 @@ public class EventUtils
{ {
HttpTool.Instance._GetEvent(entity.pullsucc_tracking[0]); HttpTool.Instance._GetEvent(entity.pullsucc_tracking[0]);
} }
//GA.Event(entity.actionName); GA.Event(entity.actionName);
} }
/// <summary> /// <summary>
/// 广告展示成功事件 /// 广告展示成功事件
...@@ -119,7 +119,7 @@ public class EventUtils ...@@ -119,7 +119,7 @@ public class EventUtils
{ {
HttpTool.Instance._GetEvent(entity.imp_tracking[0]); HttpTool.Instance._GetEvent(entity.imp_tracking[0]);
} }
//GA.Event(entity.actionName); GA.Event(entity.actionName);
} }
/// <summary> /// <summary>
/// 广告展示失败事件 /// 广告展示失败事件
...@@ -148,7 +148,7 @@ public class EventUtils ...@@ -148,7 +148,7 @@ public class EventUtils
{ {
HttpTool.Instance._GetEvent(entity.showfail_tracking[0]); HttpTool.Instance._GetEvent(entity.showfail_tracking[0]);
} }
//GA.Event(entity.actionName); GA.Event(entity.actionName);
} }
/// <summary> /// <summary>
/// 广告完成事件 /// 广告完成事件
...@@ -177,7 +177,7 @@ public class EventUtils ...@@ -177,7 +177,7 @@ public class EventUtils
{ {
HttpTool.Instance._GetEvent(entity.playcomplete_trackings[0]); HttpTool.Instance._GetEvent(entity.playcomplete_trackings[0]);
} }
//GA.Event(entity.actionName); GA.Event(entity.actionName);
} }
/// <summary> /// <summary>
...@@ -207,7 +207,7 @@ public class EventUtils ...@@ -207,7 +207,7 @@ public class EventUtils
{ {
HttpTool.Instance._GetEvent(entity.clk_tracking[0]); HttpTool.Instance._GetEvent(entity.clk_tracking[0]);
} }
//GA.Event(entity.actionName); GA.Event(entity.actionName);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment