// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Home)) { Application.Quit(); AnySDK.getInstance().release(); } }
void onPurchase() { Dictionary <string, string> paramMap = new Dictionary <string, string>(); paramMap["Item_Id"] = "123456"; paramMap["Item_Type"] = "test"; paramMap["Item_Count"] = Convert.ToString(2); paramMap["Virtual_Currency"] = "1"; paramMap["Currency_Type"] = AnySDK.getInstance().getChannelId(); AnySDKParam param = new AnySDKParam(paramMap); AnySDKAnalytics.getInstance().callFuncWithParam("onPurchase", param); }