提交h5修改
This commit is contained in:
@@ -40,26 +40,7 @@ namespace DontConfuse
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
int time = 0;
|
||||
void Update()
|
||||
{
|
||||
if (Time.time > time)
|
||||
{
|
||||
H5sendClass info = new H5sendClass() { link = "www.baidu.com", type = "h6" };
|
||||
NetworkKit_sdk.PostWithHeader<object>("event/h5Impressions", info, (isSuccess, obj) =>
|
||||
{
|
||||
if (isSuccess)
|
||||
{
|
||||
Debug.Log("发送成功");
|
||||
Debug.Log(JsonConvert.SerializeObject(obj));
|
||||
|
||||
}
|
||||
});
|
||||
time++;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
private void Awake()
|
||||
{
|
||||
// 当场景加载时,如果 _instance 还没赋值,就由挂载在物体上的自己来赋值
|
||||
|
||||
Reference in New Issue
Block a user