River Jiang
2020-10-27 79e652bedf62f0842f59a2323f139f2e90efe819
Assets/GameAnalytics_SDK_Unity-master/TalkingDataScripts/TDGADemoScript.cs
@@ -26,7 +26,7 @@
        }
        GUI.Label(new Rect(left, top + (step * i++), width, height), oaid);
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "getOAID"))
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "getOAID"))//由于IMEI属于隐私,高版本安卓 不支持获取
        {
            oaid = TalkingDataGA.GetOAID();
        }
@@ -81,7 +81,7 @@
            }
        }
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "Set Game Server"))
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "设置区服"))
        {
            if (account != null)
            {
@@ -104,27 +104,27 @@
            TDGAMission.OnFailed("miss001", "failed");
        }
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "Charge Request"))
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "充值"))
        {
            TDGAVirtualCurrency.OnChargeRequest("order01", "iap", 10, "CNY", 10, "UnionPay");
        }
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "Charge Success"))
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "充值 Success"))
        {
            TDGAVirtualCurrency.OnChargeSuccess("order01");
        }
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "Reward"))
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "追踪获赠的虚拟币"))
        {
            TDGAVirtualCurrency.OnReward(100, "reason");
        }
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "Item Purchase"))
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "记录付费点"))
        {
            TDGAItem.OnPurchase("itemid001", 10, 10);
        }
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "Item Use"))
        if (GUI.Button(new Rect(left, top + (step * i++), width, height), "消耗物品或服务等"))
        {
            TDGAItem.OnUse("itemid001", 1);
        }